From dc87e9e9f3c383b63c3cb3713886a6c93b6a79d1 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 22 Nov 2016 06:21:31 +0100 Subject: Selective Backlight/Advanced Softlock - Selective actions based on context Selective backlight allows the user to choose actions that will not enable the backlight when pressed. Advanced softlock allows user to choose actions that will not be blocked by screenlock on devices without a hold button. Both only occur in FM and WPS Contexts. Update: Back from the dead -Cleaned up code, removed unnecessary calls, re-arranged last filter action timeout conditional to work in case last_filtered_action_tick was never set -Added entries to the manual -Fixed back button on some menus not activating backlight -Made menus more intuitive, no actions selected now changes menu item to off. -Added talk fuctionality. -Added option to disable selective backlight while on external power. -Rewrote backlight and softlock handling code to fix issue with scrollwheels -Menu changed to have toggle(yes/no) and settings -Optimized selective actions lookup -Added option to disable notification of 'buttons locked' while softlocked -Removed uneeded code, consolidated action lookup to single function -Fixed incorrect name on selective softlock menu -Added option to disable touch on touchscreen devices -Fixed backlight on original screenlock without selective screenlock active -Added text selection in mask_select for when show_icons is off -Fixed voice in mask_select to speak if voice is defined instead of spelling -Added more lang defines (play skip seek) -Added option to disable unknown keys turning on backlight -Fixed Conditional argument In wrong place causing players without backlight to fail to build -Fixed Disable Unknown blocking detection of context change -Fixed canceling menu didn't update new settings -Added Autolock on backlight off -Removed backlight_on_force from backlight.c, Now sets ignore next to false and uses backlight_on -Cleaned up autolock code added strings to lang file -Fixed issue where rapid presses would bypass softlock -Removed old softlock code, Cleaned selective actions code -Changed menu to match existing RB menus -Fixed Backlight_on_Hold blocked by backlight_ignore_next -Fixed ignore_next for ipod -Fixed bug allowing context with softlock to bypass selective backlight -Changed mask_select to no longer prompt for changes to be saved -Changed menu names -Added ignore timeout to allow ipod scroll wheel to work properly and other players to still work properly, removed some previous code including ignore_event -Increased ignore timeout to prevent sd card accesses from interrupting action code and turning on backlight -Changed Unknown action to unmapped action in menu, changed handling code -Removed unneeded logic and variables for handling unfiltered actions -Reverted unmapped action code to previous functionality -Added manual entries (thanks JohnB) -Removed elusive unhandled unicode character from manual, changed formatting slightly Actions: Volume,Play,Seek,Skip Extras: Disable unmapped actions Disable selective backlight on external power Disable touch during softlock on touchscreen devices Disable softlock notifications (power button still notifies) Autolock on backlight off Method: Adds a function to ignore backlight on next call If selected action occurs backlight is forced on, Filter_first_keypress stays intact. Selective softlock allows selected actions through, bypasses the normal softlock routine. ToDo: DONE previous commit (#1) has attribution for folder_select.c which mask_select is based from. Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4 --- apps/lang/english.lang | 168 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) (limited to 'apps/lang/english.lang') diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 8d2b579f3b..676516ec3d 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -13479,3 +13479,171 @@ ibassodx90: "Android Debug Bridge" + + id: LANG_ACTION_ENABLED + desc: Selective Actions + user: core + + *: "Enabled" + + + *: "Enabled" + + + *: "Enabled" + + + + id: LANG_ACTION_PLAY + desc: Selective Actions + user: core + + *: "Play" + + + *: "Play" + + + *: "Play" + + + + id: LANG_ACTION_SEEK + desc: Selective Actions + user: core + + *: "Seek" + + + *: "Seek" + + + *: "Seek" + + + + id: LANG_ACTION_SKIP + desc: Selective Actions + user: core + + *: "Skip" + + + *: "Skip" + + + *: "Skip" + + + + id: LANG_BACKLIGHT_SELECTIVE + desc: Backlight behaviour setting + user: core + + *: "Selective Backlight" + + + *: "Selective Backlight" + + + *: "Selective Backlight" + + + + id: LANG_ACTION_DISABLE_EXT_POWER + desc: Backlight behaviour setting + user: core + + *: "Disable on External Power" + + + *: "Disable on External Power" + + + *: "Disable on External Power" + + + + id: LANG_ACTION_DISABLE_UNMAPPED + desc: Backlight behaviour setting + user: core + + *: "Disable Unmapped Keys" + + + *: "Disable Unmapped Keys" + + + *: "Disable Unmapped Keys" + + + + id: LANG_SOFTLOCK_SELECTIVE + desc: Softlock behaviour setting + user: core + + *: "Advanced Key Lock" + + + *: "Advanced Key Lock" + + + *: "Advanced Key Lock" + + + + id: LANG_ACTION_AUTOLOCK_ON + desc: Softlock behaviour setting + user: core + + *: "Autolock On" + + + *: "Autolock On" + + + *: "Autolock On" + + + + id: LANG_ACTION_AUTOLOCK_OFF + desc: Softlock behaviour setting + user: core + + *: "Autolock Off" + + + *: "Autolock Off" + + + *: "Autolock Off" + + + + id: LANG_ACTION_DISABLE_NOTIFY + desc: Softlock behaviour setting + user: core + + *: "Disable Notify" + + + *: "Disable Notify" + + + *: "Disable Notify" + + + + id: LANG_ACTION_DISABLE_TOUCH + desc: Softlock behaviour setting + user: core + + *: "Disable Touch" + + + *: "Disable Touch" + + + *: "Disable Touch" + + -- cgit v1.2.3