Merge pull request #9399 from osmandapp/Shape_OSM_Notes
Fix osm note UI
This commit is contained in:
commit
83ecc6a284
3 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ public class ExportOptionsBottomSheetDialogFragment extends MenuBottomSheetDialo
|
||||||
|
|
||||||
BaseBottomSheetItem osmNotesItem = new BottomSheetItemWithDescription.Builder()
|
BaseBottomSheetItem osmNotesItem = new BottomSheetItemWithDescription.Builder()
|
||||||
.setDescription(String.valueOf(osmNotesCount))
|
.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))
|
.setTitle(getString(R.string.osm_notes))
|
||||||
.setLayoutId(R.layout.bottom_sheet_item_with_right_descr)
|
.setLayoutId(R.layout.bottom_sheet_item_with_right_descr)
|
||||||
.setDisabled(!(osmNotesCount > 0))
|
.setDisabled(!(osmNotesCount > 0))
|
||||||
|
|
|
@ -287,7 +287,7 @@ public class OsmEditsAdapter extends ArrayAdapter<Object> {
|
||||||
}
|
}
|
||||||
return app.getUIUtilities().getIcon(iconResId, colorResId);
|
return app.getUIUtilities().getIcon(iconResId, colorResId);
|
||||||
} else if (point.getGroup() == OsmPoint.Group.BUG) {
|
} 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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,7 +123,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
|
||||||
if (child.getGroup() == Group.POI) {
|
if (child.getGroup() == Group.POI) {
|
||||||
icon.setImageDrawable(app.getUIUtilities().getIcon(R.drawable.ic_action_info_dark, R.color.color_distance));
|
icon.setImageDrawable(app.getUIUtilities().getIcon(R.drawable.ic_action_info_dark, R.color.color_distance));
|
||||||
} else if (child.getGroup() == Group.BUG) {
|
} 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);
|
TextView descr = (TextView) v.findViewById(R.id.description);
|
||||||
|
|
Loading…
Reference in a new issue