diff --git a/android/app/src/main/java/app/organicmaps/DownloadResourcesLegacyActivity.java b/android/app/src/main/java/app/organicmaps/DownloadResourcesLegacyActivity.java index a873f763aa..fc486abecd 100644 --- a/android/app/src/main/java/app/organicmaps/DownloadResourcesLegacyActivity.java +++ b/android/app/src/main/java/app/organicmaps/DownloadResourcesLegacyActivity.java @@ -450,13 +450,6 @@ public class DownloadResourcesLegacyActivity extends BaseMwmFragmentActivity .show(); } -// @Override -// @StyleRes -// public int getThemeResourceId(@NonNull String theme) -// { -// return R.style.MwmTheme_DownloadResourcesLegacy; -// } - private static native int nativeGetBytesToDownload(); private static native int nativeStartNextFileDownload(Listener listener); private static native void nativeCancelCurrentFile(); diff --git a/android/app/src/main/java/app/organicmaps/base/BaseMwmFragmentActivity.java b/android/app/src/main/java/app/organicmaps/base/BaseMwmFragmentActivity.java index b4ff839308..9292686a99 100644 --- a/android/app/src/main/java/app/organicmaps/base/BaseMwmFragmentActivity.java +++ b/android/app/src/main/java/app/organicmaps/base/BaseMwmFragmentActivity.java @@ -39,21 +39,6 @@ public abstract class BaseMwmFragmentActivity extends AppCompatActivity @NonNull private String mThemeName; -// TODO: need to set theme with android system, not custom -// @StyleRes -// protected int getThemeResourceId(@NonNull String theme) -// { -// Context context = getApplicationContext(); -// -// if (ThemeUtils.isDefaultTheme(context, theme)) -// return R.style.MwmTheme; -// -// if (ThemeUtils.isNightTheme(context, theme)) -// return R.style.MwmTheme_Night; -// -// throw new IllegalArgumentException("Attempt to apply unsupported theme: " + theme); -// } - /** * Shows splash screen and initializes the core in case when it was not initialized. * diff --git a/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategoriesActivity.java b/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategoriesActivity.java index 76068e7375..8fed8bfe35 100644 --- a/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategoriesActivity.java +++ b/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkCategoriesActivity.java @@ -39,14 +39,6 @@ public class BookmarkCategoriesActivity extends BaseToolbarActivity super.onPause(); } - -// @Override -// @StyleRes -// public int getThemeResourceId(@NonNull String theme) -// { -// return ThemeUtils.getWindowBgThemeResourceId(getApplicationContext(), theme); -// } - @Override protected Class getFragmentClass() { diff --git a/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkListActivity.java b/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkListActivity.java index 169140b615..63c7dc3713 100644 --- a/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkListActivity.java +++ b/android/app/src/main/java/app/organicmaps/bookmarks/BookmarkListActivity.java @@ -38,14 +38,6 @@ public class BookmarkListActivity extends BaseToolbarActivity super.onPause(); } - -// @Override -// @StyleRes -// public int getThemeResourceId(@NonNull String theme) -// { -// return ThemeUtils.getCardBgThemeResourceId(getApplicationContext(), theme); -// } - @Override protected Class getFragmentClass() {