From ae3d4bd8c8daccacc10ed7ec96b99c9e04aec1b8 Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Sun, 23 Dec 2018 16:54:27 +0100 Subject: [PATCH] - Settings Theme fix --- .../net/schueller/peertube/activity/SettingsActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/schueller/peertube/activity/SettingsActivity.java b/app/src/main/java/net/schueller/peertube/activity/SettingsActivity.java index b8f68f5..eabde7c 100644 --- a/app/src/main/java/net/schueller/peertube/activity/SettingsActivity.java +++ b/app/src/main/java/net/schueller/peertube/activity/SettingsActivity.java @@ -21,7 +21,6 @@ import java.util.List; import static net.schueller.peertube.helper.Constants.DEFAULT_THEME; import static net.schueller.peertube.helper.Constants.THEME_PREF_KEY; - public class SettingsActivity extends AppCompatPreferenceActivity { @Override @@ -84,7 +83,6 @@ public class SettingsActivity extends AppCompatPreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); // Set theme SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this); @@ -94,6 +92,8 @@ public class SettingsActivity extends AppCompatPreferenceActivity { getPackageName()) ); + super.onCreate(savedInstanceState); + setupActionBar(); getFragmentManager().beginTransaction().replace(android.R.id.content, new GeneralPreferenceFragment()).commit();