Update methods
This commit is contained in:
parent
6c2da87be5
commit
ec8a3f1f0f
4 changed files with 7 additions and 6 deletions
|
@ -27,6 +27,7 @@ public abstract class BottomSheetDialogFragment extends DialogFragment {
|
|||
int themeId = isLightTheme ? R.style.OsmandLightTheme_BottomSheet
|
||||
: R.style.OsmandDarkTheme_BottomSheet;
|
||||
final Dialog dialog = new Dialog(getActivity(), themeId);
|
||||
dialog.setCanceledOnTouchOutside(true);
|
||||
dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
|
||||
dialog.getWindow().getAttributes().windowAnimations = R.style.Animations_PopUpMenu_Bottom;
|
||||
dialog.setCanceledOnTouchOutside(true);
|
||||
|
|
|
@ -703,12 +703,12 @@ public class WaypointHelper {
|
|||
ApplicationMode appMode = app.getSettings().getApplicationMode();
|
||||
return uiCtx.getResources().getDrawable(appMode.getResourceLocationDay());
|
||||
} else {
|
||||
return iconsCache.getIcon(R.drawable.list_startpoint, 0, 0f);
|
||||
return iconsCache.getIcon(R.drawable.list_startpoint, 0);
|
||||
}
|
||||
} else if (((TargetPoint) point).intermediate) {
|
||||
return iconsCache.getIcon(R.drawable.list_intermediate, 0, 0f);
|
||||
return iconsCache.getIcon(R.drawable.list_intermediate, 0);
|
||||
} else {
|
||||
return iconsCache.getIcon(R.drawable.list_destination, 0, 0f);
|
||||
return iconsCache.getIcon(R.drawable.list_destination, 0);
|
||||
}
|
||||
|
||||
} else if (type == FAVORITES || type == WAYPOINTS) {
|
||||
|
|
|
@ -74,7 +74,7 @@ public abstract class BaseMenuController {
|
|||
|
||||
protected Drawable getIconOrig(int iconId) {
|
||||
IconsCache iconsCache = getMapActivity().getMyApplication().getIconsCache();
|
||||
return iconsCache.getIcon(iconId, 0, 0f);
|
||||
return iconsCache.getIcon(iconId, 0);
|
||||
}
|
||||
|
||||
protected Drawable getIcon(int iconId) {
|
||||
|
|
|
@ -411,7 +411,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener {
|
|||
ApplicationMode appMode = mapActivity.getMyApplication().getSettings().getApplicationMode();
|
||||
fromIcon.setImageDrawable(mapActivity.getResources().getDrawable(appMode.getResourceLocationDay()));
|
||||
} else {
|
||||
fromIcon.setImageDrawable(mapActivity.getMyApplication().getIconsCache().getIcon(R.drawable.list_startpoint, 0, 0f));
|
||||
fromIcon.setImageDrawable(mapActivity.getMyApplication().getIconsCache().getIcon(R.drawable.list_startpoint, 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -475,7 +475,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener {
|
|||
|
||||
private Drawable getIconOrig(int iconId) {
|
||||
IconsCache iconsCache = mapActivity.getMyApplication().getIconsCache();
|
||||
return iconsCache.getIcon(iconId, 0, 0f);
|
||||
return iconsCache.getIcon(iconId, 0);
|
||||
}
|
||||
|
||||
private OnItemClickListener getOnFavoriteClickListener(final boolean target, final FavouritesAdapter favouritesAdapter,
|
||||
|
|
Loading…
Reference in a new issue