Fix small glitches

This commit is contained in:
Victor Shcherb 2013-07-03 00:06:33 +02:00
parent 267c0524da
commit aefcc69ed3

View file

@ -78,8 +78,8 @@ public class SearchAddressFragment extends SherlockFragment {
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
boolean light = ((OsmandApplication) getApplication()).getSettings().isLightActionBar();
if(getActivity() instanceof SearchAddressActivity) {
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, SELECT_POINT, 0, R.string.get_directions).setShowAsActionFlags(
MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, SELECT_POINT, 0, "").setShowAsActionFlags(
MenuItem.SHOW_AS_ACTION_ALWAYS );
menuItem = menuItem.setIcon(light ? R.drawable.ic_action_ok_light : R.drawable.ic_action_ok_dark);
menuItem.setOnMenuItemClickListener(new OnMenuItemClickListener() {
@Override