mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 15:32:48 +00:00
fix returning to main fragment after screen orientation change
This commit is contained in:
parent
2ade6b3b09
commit
d867eb13bf
1 changed files with 4 additions and 3 deletions
|
@ -54,9 +54,10 @@ public final class SettingsActivity extends AppCompatActivity
|
|||
new NewDictionaryAdder(this, null).addDictionary(i.getData(), null);
|
||||
setIntent(new Intent()); // avoid opening again
|
||||
}
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.replace(android.R.id.content, new SettingsFragment())
|
||||
.commit();
|
||||
if (getSupportFragmentManager().getFragments().isEmpty())
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.replace(android.R.id.content, new SettingsFragment())
|
||||
.commit();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue