Disable 3 dots
This commit is contained in:
parent
5c67a132c9
commit
42705f7a5a
2 changed files with 5 additions and 3 deletions
|
@ -54,7 +54,7 @@ public class FavoritesListFragment extends OsmAndListFragment implements SearchA
|
||||||
settings = getApplication().getSettings();
|
settings = getApplication().getSettings();
|
||||||
OsmandApplication app = getApplication();
|
OsmandApplication app = getApplication();
|
||||||
favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints(),
|
favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints(),
|
||||||
!selectFavoriteMode);
|
false);
|
||||||
setListAdapter(favouritesAdapter);
|
setListAdapter(favouritesAdapter);
|
||||||
setHasOptionsMenu(true);
|
setHasOptionsMenu(true);
|
||||||
|
|
||||||
|
|
|
@ -760,13 +760,15 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
|
||||||
TextView name = (TextView) row.findViewById(R.id.favourite_label);
|
TextView name = (TextView) row.findViewById(R.id.favourite_label);
|
||||||
TextView distanceText = (TextView) row.findViewById(R.id.distance);
|
TextView distanceText = (TextView) row.findViewById(R.id.distance);
|
||||||
ImageView icon = (ImageView) row.findViewById(R.id.favourite_icon);
|
ImageView icon = (ImageView) row.findViewById(R.id.favourite_icon);
|
||||||
|
|
||||||
|
final FavouritePoint model = (FavouritePoint) getChild(groupPosition, childPosition);
|
||||||
|
row.setTag(model);
|
||||||
|
|
||||||
ImageView options = (ImageView) row.findViewById(R.id.options);
|
ImageView options = (ImageView) row.findViewById(R.id.options);
|
||||||
options.setFocusable(false);
|
options.setFocusable(false);
|
||||||
options.setImageDrawable(getMyApplication().getIconsCache()
|
options.setImageDrawable(getMyApplication().getIconsCache()
|
||||||
.getContentIcon(R.drawable.ic_overflow_menu_white));
|
.getContentIcon(R.drawable.ic_overflow_menu_white));
|
||||||
options.setVisibility(View.VISIBLE);
|
options.setVisibility(View.VISIBLE);
|
||||||
final FavouritePoint model = (FavouritePoint) getChild(groupPosition, childPosition);
|
|
||||||
row.setTag(model);
|
|
||||||
options.setOnClickListener(new View.OnClickListener() {
|
options.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|
Loading…
Reference in a new issue