Merge pull request #557 from mauriciocolli/fix-settings-rotation
Fix settings on screen rotation
This commit is contained in:
commit
be421e580d
1 changed files with 6 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue