Reformat code

This commit is contained in:
PavelRatushny 2017-11-20 18:37:11 +02:00
parent bbd64b1f52
commit aa68cf5094

View file

@ -159,8 +159,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
} }
((ActionBarProgressActivity) getActivity()).updateListViewFooter(footerView); ((ActionBarProgressActivity) getActivity()).updateListViewFooter(footerView);
MenuItem item = menu.add(R.string.local_openstreetmap_uploadall). MenuItem item = menu.add(R.string.local_openstreetmap_uploadall).setIcon(R.drawable.ic_action_export);
setIcon(R.drawable.ic_action_export);
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
@Override @Override
public boolean onMenuItemClick(MenuItem item) { public boolean onMenuItemClick(MenuItem item) {
@ -170,8 +169,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
}); });
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
item = menu.add(R.string.local_osm_changes_backup). item = menu.add(R.string.local_osm_changes_backup).setIcon(R.drawable.ic_action_gshare_dark);
setIcon(R.drawable.ic_action_gshare_dark);
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
@Override @Override
@ -181,8 +179,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
return true; return true;
} }
}); });
item = menu.add(R.string.shared_string_delete_all). item = menu.add(R.string.shared_string_delete_all).setIcon(R.drawable.ic_action_delete_dark);
setIcon(R.drawable.ic_action_delete_dark);
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
@Override @Override
@ -293,8 +290,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
private void updateSelectionTitle(ActionMode m) { private void updateSelectionTitle(ActionMode m) {
if (osmEditsSelected.size() > 0) { if (osmEditsSelected.size() > 0) {
m.setTitle(osmEditsSelected.size() + " " m.setTitle(osmEditsSelected.size() + " " + getString(R.string.shared_string_selected_lowercase));
+ getMyApplication().getString(R.string.shared_string_selected_lowercase));
} else { } else {
m.setTitle(""); m.setTitle("");
} }