From 02031fcd9175bbb10c7a2ae6ac78de4b4418cb96 Mon Sep 17 00:00:00 2001 From: "Igor B. Poretsky" Date: Wed, 4 Nov 2015 21:34:40 +0300 Subject: [PATCH] Don't show incomprehensive code of default color in accessibility mode. --- OsmAnd/res/values-ru/strings.xml | 1 + OsmAnd/res/values/strings.xml | 1 + OsmAnd/src/net/osmand/plus/helpers/ColorDialogs.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/res/values-ru/strings.xml b/OsmAnd/res/values-ru/strings.xml index ec9cf5cae0..99345d6f45 100644 --- a/OsmAnd/res/values-ru/strings.xml +++ b/OsmAnd/res/values-ru/strings.xml @@ -1999,4 +1999,5 @@ Введите категорию Введите описание Выберите категорию + Цвет по умолчанию diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 4f289d00ef..e4bbd9d300 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -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 --> + Default color Choose category Enter name Enter category diff --git a/OsmAnd/src/net/osmand/plus/helpers/ColorDialogs.java b/OsmAnd/src/net/osmand/plus/helpers/ColorDialogs.java index ded0315821..6618bad650 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/ColorDialogs.java +++ b/OsmAnd/src/net/osmand/plus/helpers/ColorDialogs.java @@ -107,7 +107,7 @@ public class ColorDialogs { } if(selection == -1) { 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; } ArrayAdapter adapter = new ArrayAdapter(ctx, android.R.layout.simple_spinner_item, colorNames) {