Point editor accessibility fix.
This commit is contained in:
parent
2422bb5fe2
commit
43860e4561
3 changed files with 15 additions and 0 deletions
|
@ -1995,4 +1995,7 @@
|
|||
<string name="access_expanded_list">Развёрнутый список</string>
|
||||
<string name="access_empty_list">Пустой список</string>
|
||||
<string name="access_map_linked_to_location">Карта привязана к местоположению</string>
|
||||
<string name="access_hint_enter_name">Введите имя</string>
|
||||
<string name="access_hint_enter_category">Введите категорию</string>
|
||||
<string name="access_hint_enter_description">Введите описание</string>
|
||||
</resources>
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
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_hint_enter_name">Enter name</string>
|
||||
<string name="access_hint_enter_category">Enter category</string>
|
||||
<string name="access_hint_enter_description">Enter description</string>
|
||||
<string name="access_map_linked_to_location">Map is linked to location</string>
|
||||
<string name="access_collapsed_list">Collapsed list</string>
|
||||
<string name="access_expanded_list">Expanded list</string>
|
||||
|
|
|
@ -180,6 +180,15 @@ public abstract class PointEditorFragment extends Fragment {
|
|||
ImageView descriptionImage = (ImageView) view.findViewById(R.id.description_image);
|
||||
descriptionImage.setImageDrawable(getRowIcon(R.drawable.ic_action_note_dark));
|
||||
|
||||
if (getMyApplication().accessibilityEnabled()) {
|
||||
headerCaption.setFocusable(true);
|
||||
nameCaption.setFocusable(true);
|
||||
categoryCaption.setFocusable(true);
|
||||
nameEdit.setHint(R.string.access_hint_enter_name);
|
||||
categoryEdit.setHint(R.string.access_hint_enter_category);
|
||||
descriptionEdit.setHint(R.string.access_hint_enter_description);
|
||||
}
|
||||
|
||||
runLayoutListener();
|
||||
|
||||
return view;
|
||||
|
|
Loading…
Reference in a new issue