mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 18:30:50 +02:00
basic support for private space (#98)
* add an action to toggle private space lock * hide apps from private space if private space is locked
This commit is contained in:
parent
679c90130d
commit
785e024ddb
12 changed files with 159 additions and 28 deletions
12
app/src/main/res/drawable/baseline_security_24.xml
Normal file
12
app/src/main/res/drawable/baseline_security_24.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:viewportHeight="24"
|
||||
android:viewportWidth="24"
|
||||
android:width="24dp">
|
||||
|
||||
<path
|
||||
android:fillColor="?android:textColor"
|
||||
android:pathData="M12,1L3,5v6c0,5.55 3.84,10.74 9,12 5.16,-1.26 9,-6.45 9,-12L21,5l-9,-4zM12,11.99h7c-0.53,4.12 -3.28,7.79 -7,8.94L12,12L5,12L5,6.3l7,-3.11v8.8z" />
|
||||
|
||||
</vector>
|
|
@ -13,6 +13,7 @@
|
|||
<string name="settings_apps_hidden_key" translatable="false">apps.hidden</string>
|
||||
<string name="settings_apps_custom_names_key" translatable="false">apps.custom_names</string>
|
||||
<string name="settings_apps_hide_bound_apps_key" translatable="false">apps.hide_bound_apps</string>
|
||||
<string name="settings_apps_hide_paused_apps_key" translatable="false">apps.hide_paused_apps</string>
|
||||
<string name="settings_list_layout_key" translatable="false">list.layout</string>
|
||||
<string name="settings_general_choose_home_screen_key" translatable="false">general.select_launcher</string>
|
||||
|
||||
|
|
|
@ -145,6 +145,7 @@
|
|||
<string name="settings_launcher_section_apps">Apps</string>
|
||||
<string name="settings_apps_hidden">Hidden apps</string>
|
||||
<string name="settings_apps_hide_bound_apps">Don\'t show apps that are bound to a gesture in the app list</string>
|
||||
<string name="settings_apps_hide_paused_apps">Hide paused apps</string>
|
||||
<string name="settings_list_layout">Layout of app list</string>
|
||||
|
||||
<string name="settings_list_layout_item_default">Default</string>
|
||||
|
@ -207,6 +208,7 @@
|
|||
<string name="list_other_settings">µLauncher Settings</string>
|
||||
<string name="list_other_list">All Applications</string>
|
||||
<string name="list_other_list_favorites">Favorite Applications</string>
|
||||
<string name="list_other_toggle_private_space_lock">Toggle Private Space Lock</string>
|
||||
<string name="list_other_volume_up">Music: Louder</string>
|
||||
<string name="list_other_volume_down">Music: Quieter</string>
|
||||
<string name="list_other_track_next">Music: Next</string>
|
||||
|
@ -245,6 +247,7 @@
|
|||
<string name="ic_menu_alt">More options</string>
|
||||
<string name="alert_cant_expand_status_bar_panel">Error: Can\'t expand status bar. This action is using functionality that is not part of the published Android API. Unfortunately, it does not seem to work on your device.</string>
|
||||
<string name="alert_requires_android_m">This functionality requires Android 6.0 or later.</string>
|
||||
<string name="alert_requires_android_v">This functionality requires Android 15.0 or later.</string>
|
||||
<string name="snackbar_app_hidden">App hidden. You can make it visible again in settings.</string>
|
||||
<string name="undo">Undo</string>
|
||||
<string name="list_other_expand_settings_panel">Quick Settings</string>
|
||||
|
@ -255,6 +258,10 @@
|
|||
<string name="alert_torch_access_exception">Error: Can\'t access torch.</string>
|
||||
<string name="alert_lock_screen_failed">Error: Failed to lock screen. (If you just upgraded the app, try to disable and re-enable the accessibility service in phone settings)</string>
|
||||
<string name="toast_accessibility_service_not_enabled">μLauncher\'s accessibility service is not enabled. Please enable it in settings</string>
|
||||
<string name="toast_private_space_locked">Private space locked</string>
|
||||
<string name="toast_private_space_unlocked">Private space unlocked</string>
|
||||
<string name="toast_private_space_not_available">Private space is not available</string>
|
||||
<string name="toast_private_space_default_home_screen">µLauncher needs to be the default home screen to access private space.</string>
|
||||
<string name="toast_lock_screen_not_supported">Error: Locking the screen using accessibility is not supported on this device. Please use device admin instead.</string>
|
||||
<string name="accessibility_service_name">µLauncher - lock screen</string>
|
||||
<string name="accessibility_service_description">
|
||||
|
|
|
@ -145,6 +145,11 @@
|
|||
android:title="@string/settings_apps_hide_bound_apps"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/settings_apps_hide_paused_apps_key"
|
||||
android:title="@string/settings_apps_hide_paused_apps"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<DropDownPreference
|
||||
android:key="@string/settings_list_layout_key"
|
||||
android:title="@string/settings_list_layout"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue