VERY experimental Nintendo Switch 2 emulator
C++
android: Don't apply material you below android 12
t895697d61d29212
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.ktindex 792f6a2538..6f7f40e436 100644--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt@@ -5,6 +5,7 @@ package org.yuzu.yuzu_emu.utilsimport android.content.res.Configurationimport android.graphics.Color+import android.os.Buildimport androidx.annotation.ColorIntimport androidx.appcompat.app.AppCompatActivityimport androidx.appcompat.app.AppCompatDelegate@@ -23,7 +24,13 @@ object ThemeHelper {setThemeMode(activity)when (Theme.from(IntSetting.THEME.getInt())) {Theme.Default -> activity.setTheme(R.style.Theme_Yuzu_Main)- Theme.MaterialYou -> activity.setTheme(R.style.Theme_Yuzu_Main_MaterialYou)+ Theme.MaterialYou -> {+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {+ activity.setTheme(R.style.Theme_Yuzu_Main_MaterialYou)+ } else {+ activity.setTheme(R.style.Theme_Yuzu_Main)+ }+ }}// Using a specific night mode check because this could apply incorrectly when using the