1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 09:00:31 +00:00

Update SettingsActivity.java

This commit is contained in:
Teja Vojjala 2016-02-01 15:00:08 +05:30
parent e958334406
commit d3e9f354b3

View File

@ -55,6 +55,7 @@ public class SettingsActivity extends PreferenceActivity {
getDelegate().installViewFactory(); getDelegate().installViewFactory();
getDelegate().onCreate(savedInstanceBundle); getDelegate().onCreate(savedInstanceBundle);
super.onCreate(savedInstanceBundle); super.onCreate(savedInstanceBundle);
setVolumeControlStream(AudioManager.STREAM_MUSIC);
getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true);
@ -87,7 +88,6 @@ public class SettingsActivity extends PreferenceActivity {
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setVolumeControlStream(AudioManager.STREAM_MUSIC);
addPreferencesFromResource(R.xml.settings); addPreferencesFromResource(R.xml.settings);
final Activity activity = getActivity(); final Activity activity = getActivity();