Fix #7182
This commit is contained in:
parent
83149359e9
commit
9aecf83050
1 changed files with 6 additions and 2 deletions
|
@ -9,6 +9,7 @@ import net.osmand.plus.base.bottomsheetmenu.BaseBottomSheetItem;
|
|||
import net.osmand.plus.base.bottomsheetmenu.SimpleBottomSheetItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.DividerHalfItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.TitleItem;
|
||||
import net.osmand.util.Algorithms;
|
||||
|
||||
public class OsmEditOptionsBottomSheetDialogFragment extends MenuBottomSheetDialogFragment {
|
||||
|
||||
|
@ -27,8 +28,11 @@ public class OsmEditOptionsBottomSheetDialogFragment extends MenuBottomSheetDial
|
|||
Bundle args = getArguments();
|
||||
if (args != null) {
|
||||
final OsmPoint osmPoint = (OsmPoint) args.getSerializable(OSM_POINT);
|
||||
|
||||
items.add(new TitleItem(OsmEditingPlugin.getName(osmPoint) + ":"));
|
||||
String name = OsmEditingPlugin.getName(osmPoint);
|
||||
if (Algorithms.isEmpty(name)) {
|
||||
name = OsmEditingPlugin.getCategory(osmPoint, getContext());
|
||||
}
|
||||
items.add(new TitleItem(name + ":"));
|
||||
|
||||
BaseBottomSheetItem uploadItem = new SimpleBottomSheetItem.Builder()
|
||||
.setIcon(getContentIcon(R.drawable.ic_action_export))
|
||||
|
|
Loading…
Reference in a new issue