summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJoey <joey@lineageos.org>2018-02-04 11:36:32 +0100
committerLuK1337 <priv.luk@gmail.com>2020-01-24 18:29:31 +0100
commitbaab9939998fc3e59daa11cb52d699346939a1e2 (patch)
treeac2a8162c3a3b59218243ba032a4db814b9caffd /res
parente1b5be663f25f09d16e956aff8f8a90d1ab502a4 (diff)
downloadandroid_packages_apps_Trebuchet-baab9939998fc3e59daa11cb52d699346939a1e2.tar.gz
android_packages_apps_Trebuchet-baab9939998fc3e59daa11cb52d699346939a1e2.tar.bz2
android_packages_apps_Trebuchet-baab9939998fc3e59daa11cb52d699346939a1e2.zip
Trebuchet: allow disabling workspace edit
Change-Id: I503e19cbc512eac0e4a8c8bccc16a6ccc0e805da Signed-off-by: Joey <joey@lineageos.org>
Diffstat (limited to 'res')
-rw-r--r--res/values/lineage_strings.xml6
-rw-r--r--res/xml/launcher_preferences.xml8
2 files changed, 14 insertions, 0 deletions
diff --git a/res/values/lineage_strings.xml b/res/values/lineage_strings.xml
index e53491703..ef62affa6 100644
--- a/res/values/lineage_strings.xml
+++ b/res/values/lineage_strings.xml
@@ -26,6 +26,12 @@
<!-- Settings message explaining when the -1 screen is available on an RTL device. [CHAR LIMIT=100] -->
<string name="msg_minus_one_on_right">When you swipe left from main home screen</string>
+ <!-- Edit workspace -->
+ <string name="settings_edit_allow_title">Allow edit</string>
+ <string name="settings_edit_allow_summary_on">Icons and widgets can be added, removed and moved on the homescreen</string>
+ <string name="settings_edit_allow_summary_off">Icons and widgets can\'t be added, removed and moved on the homescreen</string>
+ <string name="settings_edit_widgets_error">It\'s not possible to add widgets to the home screen</string>
+
<!-- Folder titles -->
<string name="google_folder_title" translatable="false">Google</string>
diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml
index b5dace816..3df481c88 100644
--- a/res/xml/launcher_preferences.xml
+++ b/res/xml/launcher_preferences.xml
@@ -17,6 +17,14 @@
<androidx.preference.PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
+ <SwitchPreference
+ android:defaultValue="true"
+ android:key="pref_workspace_edit"
+ android:persistent="true"
+ android:title="@string/settings_edit_allow_title"
+ android:summaryOn="@string/settings_edit_allow_summary_on"
+ android:summaryOff="@string/settings_edit_allow_summary_off" />
+
<com.android.launcher3.settings.NotificationDotsPreference
android:key="pref_icon_badging"
android:title="@string/notification_dots_title"