Merge pull request #9399 from osmandapp/Shape_OSM_Notes

Fix osm note UI
This commit is contained in:
Vitaliy 2020-07-06 18:29:56 +03:00 committed by GitHub
commit 83ecc6a284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ public class ExportOptionsBottomSheetDialogFragment extends MenuBottomSheetDialo
BaseBottomSheetItem osmNotesItem = new BottomSheetItemWithDescription.Builder()
.setDescription(String.valueOf(osmNotesCount))
.setIcon(getContentIcon(R.drawable.ic_action_osm_note))
.setIcon(getContentIcon(R.drawable.ic_action_osm_note_add))
.setTitle(getString(R.string.osm_notes))
.setLayoutId(R.layout.bottom_sheet_item_with_right_descr)
.setDisabled(!(osmNotesCount > 0))

View file

@ -287,7 +287,7 @@ public class OsmEditsAdapter extends ArrayAdapter<Object> {
}
return app.getUIUtilities().getIcon(iconResId, colorResId);
} else if (point.getGroup() == OsmPoint.Group.BUG) {
return app.getUIUtilities().getIcon(R.drawable.ic_action_osm_note, R.color.color_distance);
return app.getUIUtilities().getIcon(R.drawable.ic_action_osm_note_add, R.color.color_distance);
}
return null;
}

View file

@ -123,7 +123,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
if (child.getGroup() == Group.POI) {
icon.setImageDrawable(app.getUIUtilities().getIcon(R.drawable.ic_action_info_dark, R.color.color_distance));
} else if (child.getGroup() == Group.BUG) {
icon.setImageDrawable(app.getUIUtilities().getIcon(R.drawable.ic_action_osm_note, R.color.color_distance));
icon.setImageDrawable(app.getUIUtilities().getIcon(R.drawable.ic_action_osm_note_add, R.color.color_distance));
}
TextView descr = (TextView) v.findViewById(R.id.description);