summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-03-20 15:11:05 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2021-03-23 02:05:20 +0000
commit1c54c5227b4b8640c979000a340631dbeb190111 (patch)
tree013f12d519da9240f3b995544d19e58bc75bbffb /apps/menus
parentbf9fdb13c4d38f19aa303b6fc88ee3a97ca6c441 (diff)
downloadrockbox-1c54c5227b4b8640c979000a340631dbeb190111.tar.gz
rockbox-1c54c5227b4b8640c979000a340631dbeb190111.zip
Add disable setting for all softlock notifications
Tested on erosq Added ability to disable all softlock notifications. Setting is "Disable All Lock Notifications" under Advanced Key Lock Settings. Tested to make sure it doesn't interfere with backlight exemptions, keylock exemptions, or first press enables backlight only. When enabled, this overrules the existing Disable Notify setting, which only disables the reminders when a button is pressed while the device is already locked. Also changed phrases in the Advanced Key Lock settings menu to make it more obvious what the options do. Changed LANG_ACTION_PLAY, LANG_ACTION_SEEK, and LANG_ACTION_SKIP from "[button]" to "Exempt [button]". These language changes will also affect the Backlight Exemptions list, but the wording should be appropriate there as well. Added LANG_SOFTLOCK_DISABLE_ALL_NOTIFY and LANG_ACTION_VOLUME, changed LANG_VOLUME to LANG_ACTION_VOLUME in display_menu.c for consistency. Change-Id: I914fe154ba5d508a842165aea7c7755e4e6b9c57
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/display_menu.c2
-rw-r--r--apps/menus/settings_menu.c15
2 files changed, 9 insertions, 8 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index b4a3d3eb63..c72fb08fae 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -94,7 +94,7 @@ static int selectivebacklight_set_mask(void* param)
94 (void)param; 94 (void)param;
95 int mask = global_settings.bl_selective_actions_mask; 95 int mask = global_settings.bl_selective_actions_mask;
96 struct s_mask_items maskitems[]={ 96 struct s_mask_items maskitems[]={
97 {ID2P(LANG_VOLUME) , SEL_ACTION_VOL}, 97 {ID2P(LANG_ACTION_VOLUME) , SEL_ACTION_VOL},
98 {ID2P(LANG_ACTION_PLAY), SEL_ACTION_PLAY}, 98 {ID2P(LANG_ACTION_PLAY), SEL_ACTION_PLAY},
99 {ID2P(LANG_ACTION_SEEK), SEL_ACTION_SEEK}, 99 {ID2P(LANG_ACTION_SEEK), SEL_ACTION_SEEK},
100 {ID2P(LANG_ACTION_SKIP), SEL_ACTION_SKIP}, 100 {ID2P(LANG_ACTION_SKIP), SEL_ACTION_SKIP},
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 33d29b003c..a5daad01ce 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -83,17 +83,18 @@ static int selectivesoftlock_set_mask(void* param)
83 (void)param; 83 (void)param;
84int mask = global_settings.bt_selective_softlock_actions_mask; 84int mask = global_settings.bt_selective_softlock_actions_mask;
85 struct s_mask_items maskitems[]={ 85 struct s_mask_items maskitems[]={
86 {ID2P(LANG_VOLUME) , SEL_ACTION_VOL}, 86 {ID2P(LANG_ACTION_VOLUME), SEL_ACTION_VOL},
87 {ID2P(LANG_ACTION_PLAY), SEL_ACTION_PLAY}, 87 {ID2P(LANG_ACTION_PLAY), SEL_ACTION_PLAY},
88 {ID2P(LANG_ACTION_SEEK), SEL_ACTION_SEEK}, 88 {ID2P(LANG_ACTION_SEEK), SEL_ACTION_SEEK},
89 {ID2P(LANG_ACTION_SKIP), SEL_ACTION_SKIP}, 89 {ID2P(LANG_ACTION_SKIP), SEL_ACTION_SKIP},
90 #ifdef HAVE_BACKLIGHT 90 #ifdef HAVE_BACKLIGHT
91 {ID2P(LANG_ACTION_AUTOLOCK_ON), SEL_ACTION_AUTOLOCK}, 91 {ID2P(LANG_ACTION_AUTOLOCK_ON), SEL_ACTION_AUTOLOCK},
92 #endif 92 #endif
93 #if defined(HAVE_TOUCHPAD) || defined(HAVE_TOUCHSCREEN) 93 #if defined(HAVE_TOUCHPAD) || defined(HAVE_TOUCHSCREEN)
94 {ID2P(LANG_ACTION_DISABLE_TOUCH) , SEL_ACTION_NOTOUCH}, 94 {ID2P(LANG_ACTION_DISABLE_TOUCH), SEL_ACTION_NOTOUCH},
95 #endif 95 #endif
96 {ID2P(LANG_ACTION_DISABLE_NOTIFY), SEL_ACTION_NONOTIFY} 96 {ID2P(LANG_ACTION_DISABLE_NOTIFY), SEL_ACTION_NONOTIFY},
97 {ID2P(LANG_SOFTLOCK_DISABLE_ALL_NOTIFY), SEL_ACTION_ALLNONOTIFY}
97 }; 98 };
98 99
99 mask = mask_select(mask, ID2P(LANG_SOFTLOCK_SELECTIVE) 100 mask = mask_select(mask, ID2P(LANG_SOFTLOCK_SELECTIVE)