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());