Fix Settings on screen rotation
This commit is contained in:
parent
cac79d9a0d
commit
641ab25470
1 changed files with 6 additions and 4 deletions
|
@ -53,15 +53,17 @@ public class SettingsActivity extends AppCompatActivity {
|
|||
actionBar.setDisplayShowTitleEnabled(true);
|
||||
}
|
||||
|
||||
if (savedInstanceBundle == null) {
|
||||
getFragmentManager().beginTransaction()
|
||||
.replace(R.id.fragment_holder, new SettingsFragment())
|
||||
.commit();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
int id = item.getItemId();
|
||||
if(id == android.R.id.home) {
|
||||
if (id == android.R.id.home) {
|
||||
finish();
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue