From e81da1cb7cfc4d73e9ffc2ccf3c0801312708407 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Mon, 9 Sep 2019 15:22:00 +0300 Subject: [PATCH] [android] get rid editor.timepicker style because of it works incorrectly --- android/AndroidManifest.xml | 1 - android/res/values/styles-editor.xml | 7 ------- android/res/values/styles-text.xml | 5 ----- android/res/values/themes.xml | 14 -------------- .../com/mapswithme/maps/editor/EditorActivity.java | 13 ------------- 5 files changed, 40 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 9b4d7ba4be..7fcd5e2f4d 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -329,7 +329,6 @@ android:name="com.mapswithme.maps.editor.EditorActivity" android:configChanges="orientation|screenLayout|screenSize" android:label="@string/edit_place" - android:theme="@style/MwmTheme.EditorActivity" android:parentActivityName="com.mapswithme.maps.MwmActivity"> - - - diff --git a/android/res/values/themes.xml b/android/res/values/themes.xml index 1ad508986c..c39c91794d 100644 --- a/android/res/values/themes.xml +++ b/android/res/values/themes.xml @@ -5,13 +5,11 @@ @@ -69,14 +67,6 @@ @color/white_primary - - - - diff --git a/android/src/com/mapswithme/maps/editor/EditorActivity.java b/android/src/com/mapswithme/maps/editor/EditorActivity.java index 4795345375..e4fbf76168 100644 --- a/android/src/com/mapswithme/maps/editor/EditorActivity.java +++ b/android/src/com/mapswithme/maps/editor/EditorActivity.java @@ -25,17 +25,4 @@ public class EditorActivity extends BaseMwmFragmentActivity final Intent intent = new Intent(activity, EditorActivity.class); activity.startActivity(intent); } - - @Override - @StyleRes - public int getThemeResourceId(@NonNull String theme) - { - if (ThemeUtils.isDefaultTheme(theme)) - return R.style.MwmTheme_EditorActivity; - - if (ThemeUtils.isNightTheme(theme)) - return R.style.MwmTheme_Night_EditorActivity; - - throw new IllegalArgumentException("Attempt to apply unsupported theme: " + theme); - } }