From 0edbc5c42123531b48f875a55c8434bc33cfeead Mon Sep 17 00:00:00 2001 From: Harry Bond Date: Thu, 19 Dec 2024 16:30:04 +0000 Subject: [PATCH] change this --- .../main/java/app/organicmaps/SplashActivity.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/android/app/src/main/java/app/organicmaps/SplashActivity.java b/android/app/src/main/java/app/organicmaps/SplashActivity.java index ca2efa2dab..5f5fe41458 100644 --- a/android/app/src/main/java/app/organicmaps/SplashActivity.java +++ b/android/app/src/main/java/app/organicmaps/SplashActivity.java @@ -63,12 +63,13 @@ public class SplashActivity extends AppCompatActivity final Context context = getApplicationContext(); final String theme = Config.getUiThemeSettings(context); - if (ThemeUtils.isDefaultTheme(context, theme)) - setTheme(R.style.MwmTheme_Splash); - else if (ThemeUtils.isNightTheme(context, theme)) - setTheme(R.style.MwmTheme_Night_Splash); - else - throw new IllegalArgumentException("Attempt to apply unsupported theme: " + theme); + //Need to change this to use android theme system instead of manually setting +// if (ThemeUtils.isDefaultTheme(context, theme)) +// setTheme(R.style.MwmTheme_Splash); +// else if (ThemeUtils.isNightTheme(context, theme)) +// setTheme(R.style.MwmTheme_Night_Splash); +// else +// throw new IllegalArgumentException("Attempt to apply unsupported theme: " + theme); UiThread.cancelDelayedTasks(mInitCoreDelayedTask); setContentView(R.layout.activity_splash);