Added Ok button title in the accessibility mode.

This commit is contained in:
Igor B. Poretsky 2014-04-03 06:00:00 +04:00
parent 02031fcd91
commit a8fecfca7a

View file

@ -82,6 +82,8 @@ public class SearchAddressFragment extends Fragment {
if(getActivity() instanceof SearchAddressActivity) { if(getActivity() instanceof SearchAddressActivity) {
MenuItem menuItem = menu.add(0, SELECT_POINT, 0, ""); MenuItem menuItem = menu.add(0, SELECT_POINT, 0, "");
MenuItemCompat.setShowAsAction(menuItem, MenuItemCompat.SHOW_AS_ACTION_ALWAYS); MenuItemCompat.setShowAsAction(menuItem, MenuItemCompat.SHOW_AS_ACTION_ALWAYS);
if (getApplication().accessibilityEnabled())
menuItem.setTitle(R.string.shared_string_ok);
menuItem = menuItem.setIcon(R.drawable.ic_action_done); menuItem = menuItem.setIcon(R.drawable.ic_action_done);
menuItem.setOnMenuItemClickListener(new OnMenuItemClickListener() { menuItem.setOnMenuItemClickListener(new OnMenuItemClickListener() {
@Override @Override