Fix #7752 fix design
This commit is contained in:
parent
04592db0fa
commit
e2a4153871
1 changed files with 14 additions and 14 deletions
|
@ -240,7 +240,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
|
||||||
info.getFileName());
|
info.getFileName());
|
||||||
confirm.setMessage(getString(R.string.clear_confirmation_msg, fn));
|
confirm.setMessage(getString(R.string.clear_confirmation_msg, fn));
|
||||||
confirm.show();
|
confirm.show();
|
||||||
} else if (resId == R.string.maps_define_edit) {
|
} else if (resId == R.string.shared_string_edit) {
|
||||||
OsmandRasterMapsPlugin.defineNewEditLayer(getDownloadActivity(),
|
OsmandRasterMapsPlugin.defineNewEditLayer(getDownloadActivity(),
|
||||||
new ResultMatcher<TileSourceManager.TileSourceTemplate>() {
|
new ResultMatcher<TileSourceManager.TileSourceTemplate>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -1237,6 +1237,18 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource) &&
|
||||||
|
((ITileSource) info.getAttachedObject()).couldBeDownloadedFromInternet()) {
|
||||||
|
item = optionsMenu.getMenu().add(R.string.shared_string_edit)
|
||||||
|
.setIcon(iconsCache.getThemedIcon(R.drawable.ic_action_edit_dark));
|
||||||
|
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||||
|
@Override
|
||||||
|
public boolean onMenuItemClick(MenuItem item) {
|
||||||
|
performBasicOperation(R.string.shared_string_edit, info);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource) &&
|
if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource) &&
|
||||||
((ITileSource)info.getAttachedObject()).couldBeDownloadedFromInternet()) {
|
((ITileSource)info.getAttachedObject()).couldBeDownloadedFromInternet()) {
|
||||||
item = optionsMenu.getMenu().add(R.string.clear_tile_data)
|
item = optionsMenu.getMenu().add(R.string.clear_tile_data)
|
||||||
|
@ -1249,18 +1261,6 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource) &&
|
|
||||||
((ITileSource) info.getAttachedObject()).couldBeDownloadedFromInternet()) {
|
|
||||||
item = optionsMenu.getMenu().add(R.string.maps_define_edit)
|
|
||||||
.setIcon(iconsCache.getThemedIcon(R.drawable.ic_action_type_edit));
|
|
||||||
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
|
||||||
@Override
|
|
||||||
public boolean onMenuItemClick(MenuItem item) {
|
|
||||||
performBasicOperation(R.string.maps_define_edit, info);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
final IndexItem update = filesToUpdate.get(info.getFileName());
|
final IndexItem update = filesToUpdate.get(info.getFileName());
|
||||||
if (update != null) {
|
if (update != null) {
|
||||||
item = optionsMenu.getMenu().add(R.string.update_tile)
|
item = optionsMenu.getMenu().add(R.string.update_tile)
|
||||||
|
|
Loading…
Reference in a new issue