diff --git a/OsmAnd/res/layout/bottom_sheet_menu_base.xml b/OsmAnd/res/layout/bottom_sheet_menu_base.xml
index fa0ded81ea..dc7ec4009f 100644
--- a/OsmAnd/res/layout/bottom_sheet_menu_base.xml
+++ b/OsmAnd/res/layout/bottom_sheet_menu_base.xml
@@ -40,23 +40,6 @@
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_sheet_cancel_button_height">
-
-
-
diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml
index 56a49063c4..a932add462 100644
--- a/OsmAnd/res/values/sizes.xml
+++ b/OsmAnd/res/values/sizes.xml
@@ -142,17 +142,17 @@
20dp
- 17dp
- 14dp
- 16dp
- 4dp
- 76dp
- 10dp
- -16dp
- 4dp
- 54dp
- 44dp
- 54dp
+ 17dp
+ 14dp
+ 16dp
+ 4dp
+ 76dp
+ 10dp
+ -16dp
+ 4dp
+ 54dp
+ 44dp
+ 54dp
24dp
48dp
20dp
@@ -179,14 +179,14 @@
40dp
62dp
- 12dp
- 72dp
+ 12dp
+ 72dp
-
- 19sp
- 16sp
- 14sp
- 12sp
+
+ 19sp
+ 16sp
+ 14sp
+ 12sp
10sp
23sp
15sp
@@ -216,7 +216,7 @@
60dp
64dp
- 48dp
+ 48dp
36dp
360dp
@@ -302,9 +302,9 @@
13dp
15dp
- 120dp
- 16dp
- 40dp
+ 120dp
+ 16dp
+ 40dp
300dp
diff --git a/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java
index 2354b14992..1a00bda09a 100644
--- a/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/profiles/AppModesBottomSheetDialogFragment.java
@@ -78,7 +78,7 @@ public class AppModesBottomSheetDialogFragment extends MenuBottomSheetDialogFrag
listener = new ProfileListener() {
@Override
public void changeProfileStatus(ApplicationMode item, boolean isSelected) {
- if(isSelected) {
+ if (isSelected) {
selectedModes.add(item);
} else {
selectedModes.remove(item);
@@ -99,7 +99,8 @@ public class AppModesBottomSheetDialogFragment extends MenuBottomSheetDialogFrag
adapter.setListener(listener);
allModes = ApplicationMode.allPossibleValues();
allModes.remove(ApplicationMode.DEFAULT);
- adapter.updateItemsList(allModes, new LinkedHashSet<>(ApplicationMode.values(getMyApplication())));
+ adapter.updateItemsList(allModes,
+ new LinkedHashSet<>(ApplicationMode.values(getMyApplication())));
setupHeightAndBackground(getView());
}
@@ -113,16 +114,12 @@ public class AppModesBottomSheetDialogFragment extends MenuBottomSheetDialogFrag
@Override
public void createMenuItems(Bundle savedInstanceState) {
-
-
-
-
final View textButtonView = View.inflate(new ContextThemeWrapper(getContext(), themeRes),
R.layout.bottom_sheet_item_simple, null);
TextView textView = (TextView) textButtonView.findViewById(R.id.title);
int dpPadding = (int) (8 * getResources().getDisplayMetrics().density + 0.5f);
- textView.setPadding(dpPadding, 0,0,0);
+ textView.setPadding(dpPadding, 0, 0, 0);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16.0f);
textView.setTextColor(nightMode
? getResources().getColor(R.color.active_buttons_and_links_dark)
@@ -137,9 +134,7 @@ public class AppModesBottomSheetDialogFragment extends MenuBottomSheetDialogFrag
public void onClick(View v) {
startActivity(new Intent(getContext(), SettingsProfileActivity.class));
}
- })
- .create());
-
+ }).create());
}
public void setUpdateMapRouteMenuListener(
@@ -147,7 +142,7 @@ public class AppModesBottomSheetDialogFragment extends MenuBottomSheetDialogFrag
this.updateMapRouteMenuListener = updateMapRouteMenuListener;
}
- public interface UpdateMapRouteMenuListener{
+ public interface UpdateMapRouteMenuListener {
void updateAppModeMenu();
}
}
diff --git a/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java
index 3a83644a1a..34d8337e1e 100644
--- a/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/profiles/SelectProfileBottomSheetDialogFragment.java
@@ -213,8 +213,6 @@ public class SelectProfileBottomSheetDialogFragment extends MenuBottomSheetDialo
}
}
-
-
private void getListener() {
if (getActivity() != null && getActivity() instanceof EditProfileActivity) {
EditProfileFragment f = (EditProfileFragment) getActivity().getSupportFragmentManager()
diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java
index 7cf66b1afe..1841574e3e 100644
--- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java
+++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java
@@ -732,10 +732,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
mainView.findViewById(R.id.app_modes_options).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
-
showProfileBottomSheetDialog();
- //todo clear (+ method's body) before final commit
- //availableProfileDialog();
}
});
}
@@ -762,41 +759,6 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
.add(fragment, "app_profile_settings").commitAllowingStateLoss();
}
-// private void availableProfileDialog() {
-// MapActivity mapActivity = getMapActivity();
-// if (mapActivity != null) {
-// AlertDialog.Builder b = new AlertDialog.Builder(mapActivity);
-// final OsmandSettings settings = mapActivity.getMyApplication().getSettings();
-// final List modes = ApplicationMode.allPossibleValues();
-// modes.remove(ApplicationMode.DEFAULT);
-// final Set selected = new LinkedHashSet<>(ApplicationMode.values(mapActivity.getMyApplication()));
-// selected.remove(ApplicationMode.DEFAULT);
-// View v = AppModeDialog.prepareAppModeView(mapActivity, modes, selected, null, false, true, false,
-// new OnClickListener() {
-//
-// @Override
-// public void onClick(View v) {
-// StringBuilder vls = new StringBuilder(ApplicationMode.DEFAULT.getStringKey() + ",");
-// for (ApplicationMode mode : modes) {
-// if (selected.contains(mode)) {
-// vls.append(mode.getStringKey()).append(",");
-// }
-// }
-// settings.AVAILABLE_APP_MODES.set(vls.toString());
-// }
-// });
-// b.setTitle(R.string.profile_settings);
-// b.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
-// @Override
-// public void onClick(DialogInterface dialog, int which) {
-// updateApplicationModes();
-// }
-// });
-// b.setView(v);
-// b.show();
-// }
-// }
-
private void updateApplicationMode(ApplicationMode mode, ApplicationMode next) {
MapActivity mapActivity = getMapActivity();
if (mapActivity != null) {