1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-17 23:34:54 +00:00

Fix Settings on screen rotation

This commit is contained in:
Mauricio Colli 2017-05-14 11:10:00 -03:00
parent cac79d9a0d
commit 641ab25470

View File

@ -53,10 +53,12 @@ public class SettingsActivity extends AppCompatActivity {
actionBar.setDisplayShowTitleEnabled(true); actionBar.setDisplayShowTitleEnabled(true);
} }
if (savedInstanceBundle == null) {
getFragmentManager().beginTransaction() getFragmentManager().beginTransaction()
.replace(R.id.fragment_holder, new SettingsFragment()) .replace(R.id.fragment_holder, new SettingsFragment())
.commit(); .commit();
} }
}
@Override @Override
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {