Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Celestial04 committed Mar 30, 2024
1 parent 62acd9c commit 8050c70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/hugdev/webapper/tuto_1.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 8050c70

Please sign in to comment.