From 0e0aedcd342199bf8e4381a0580826f39f3a1ac8 Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Sat, 24 Jun 2023 23:41:45 +0200 Subject: [PATCH] Fix themes --- .../fragment/SettingsFragment.java | 1 - .../util/NavigationUtil.java | 1 + app/src/main/res/values-night/themes.xml | 5 +--- app/src/main/res/values-v23/themes.xml | 1 - app/src/main/res/values/themes.xml | 28 +++++++++---------- 5 files changed, 16 insertions(+), 20 deletions(-) diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/SettingsFragment.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/SettingsFragment.java index 4fa1347..f3d9843 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/SettingsFragment.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/SettingsFragment.java @@ -52,7 +52,6 @@ public class SettingsFragment extends Fragment { Integer themeID = SettingsUtil.THEMES.get(theme); if(themeID == null) return; - Log.e("AMOGUS", "REstarting activity"); requireActivity().setTheme(themeID); requireActivity().recreate(); } diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/NavigationUtil.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/NavigationUtil.java index 66fd920..c53cbe4 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/NavigationUtil.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/NavigationUtil.java @@ -1,5 +1,6 @@ package com.cringe_studios.cringe_authenticator.util; +import android.content.Context; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index e4aaeec..f1b8847 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -1,9 +1,6 @@ - \ No newline at end of file diff --git a/app/src/main/res/values-v23/themes.xml b/app/src/main/res/values-v23/themes.xml index 7c092e0..5fa3656 100644 --- a/app/src/main/res/values-v23/themes.xml +++ b/app/src/main/res/values-v23/themes.xml @@ -1,5 +1,4 @@ - - + - - - - -