From: Paul Keith Date: Wed, 21 Feb 2018 19:10:11 +0000 (+0100) Subject: AdvancedDisplay: Fix strings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=763a8c3b46217b51049dfbf058a678a5d5f2c8ba;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git AdvancedDisplay: Fix strings * It just so happens that not all devices will have the same options available, so allow them to specify what they have without breaking tranlations by moving the scenario names into individual strings from the arrays * Update a few strings to be actually translatable * Fix an off-by-one error for every display mode after "LineageOS (default)": UI is the same thing as the default mode, so remove it to make the mode selection actually choose the user-selected mode Change-Id: Id5d659d79c10ea097c35b7416ef7c1cc93937756 --- diff --git a/AdvancedDisplay/res/values/arrays.xml b/AdvancedDisplay/res/values/arrays.xml index a96bcd0..2e2eeb3 100644 --- a/AdvancedDisplay/res/values/arrays.xml +++ b/AdvancedDisplay/res/values/arrays.xml @@ -1,6 +1,7 @@ - - LineageOS (default) - UI - Video - Video warm - Video cold - Camera - Navigation - Gallery - VT + + @string/mdnie_scenario_ui + @string/mdnie_scenario_video + @string/mdnie_scenario_video_warm + @string/mdnie_scenario_video_cold + @string/mdnie_scenario_camera + @string/mdnie_scenario_navigation + @string/mdnie_scenario_gallery + @string/mdnie_scenario_vt @@ -36,12 +36,11 @@ 5 6 7 - 8 - - Normal - Inverted + + @string/mdnie_inverse_normal + @string/mdnie_inverse_inverse diff --git a/AdvancedDisplay/res/values/strings.xml b/AdvancedDisplay/res/values/strings.xml index 89f55a9..99f7800 100644 --- a/AdvancedDisplay/res/values/strings.xml +++ b/AdvancedDisplay/res/values/strings.xml @@ -1,6 +1,7 @@ + LineageOS (default) + Video + Video warm + Video cold + Camera + Navigation + Gallery + Video call + + + Normal + Inverted +