From 8050c70318a236d4eba798eeab02afcabc53f71b Mon Sep 17 00:00:00 2001 From: hugoc Date: Sat, 30 Mar 2024 22:27:34 +0100 Subject: [PATCH] Updated --- app/src/main/java/com/hugdev/webapper/tuto_1.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/hugdev/webapper/tuto_1.java b/app/src/main/java/com/hugdev/webapper/tuto_1.java index c6e83a9..c847f50 100644 --- a/app/src/main/java/com/hugdev/webapper/tuto_1.java +++ b/app/src/main/java/com/hugdev/webapper/tuto_1.java @@ -23,8 +23,11 @@ public class tuto_1 extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); int savedTheme = getSharedPreferences("PREFERENCE", MODE_PRIVATE).getInt("selected_theme", NONE); + if (savedTheme != NONE) { selectedTheme = savedTheme; + }else{ + selectedTheme = R.style.Theme_WebApper_dark; } setTheme(selectedTheme); DynamicColors.applyToActivitiesIfAvailable(this.getApplication());