Don't show incomprehensive code of default color in accessibility
mode.
This commit is contained in:
parent
bf8dd4180b
commit
02031fcd91
3 changed files with 3 additions and 1 deletions
|
@ -1999,4 +1999,5 @@
|
||||||
<string name="access_hint_enter_category">Введите категорию</string>
|
<string name="access_hint_enter_category">Введите категорию</string>
|
||||||
<string name="access_hint_enter_description">Введите описание</string>
|
<string name="access_hint_enter_description">Введите описание</string>
|
||||||
<string name="access_category_choice">Выберите категорию</string>
|
<string name="access_category_choice">Выберите категорию</string>
|
||||||
|
<string name="access_default_color">Цвет по умолчанию</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<string name="access_default_color">Default color</string>
|
||||||
<string name="access_category_choice">Choose category</string>
|
<string name="access_category_choice">Choose category</string>
|
||||||
<string name="access_hint_enter_name">Enter name</string>
|
<string name="access_hint_enter_name">Enter name</string>
|
||||||
<string name="access_hint_enter_category">Enter category</string>
|
<string name="access_hint_enter_category">Enter category</string>
|
||||||
|
|
|
@ -107,7 +107,7 @@ public class ColorDialogs {
|
||||||
}
|
}
|
||||||
if(selection == -1) {
|
if(selection == -1) {
|
||||||
colors.insert(0, selectedColor);
|
colors.insert(0, selectedColor);
|
||||||
colorNames.add(0, colorToString(selectedColor));
|
colorNames.add(0, ((OsmandApplication)ctx.getApplicationContext()).accessibilityEnabled() ? ctx.getString(R.string.access_default_color) : colorToString(selectedColor));
|
||||||
selection = 0;
|
selection = 0;
|
||||||
}
|
}
|
||||||
ArrayAdapter<String> adapter = new ArrayAdapter<String>(ctx, android.R.layout.simple_spinner_item, colorNames) {
|
ArrayAdapter<String> adapter = new ArrayAdapter<String>(ctx, android.R.layout.simple_spinner_item, colorNames) {
|
||||||
|
|
Loading…
Reference in a new issue