- Settings Theme fix

This commit is contained in:
Stefan Schueller 2018-12-23 16:54:27 +01:00
parent 22450294a1
commit ae3d4bd8c8

View File

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