parent
bab95d5ad5
commit
6c5382fa47
1 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,9 @@ public class SettingsActivity extends AppCompatActivity implements BasePreferenc
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
int id = item.getItemId();
|
int id = item.getItemId();
|
||||||
if (id == android.R.id.home) {
|
if (id == android.R.id.home) {
|
||||||
finish();
|
if (getSupportFragmentManager().getBackStackEntryCount() == 0) {
|
||||||
|
finish();
|
||||||
|
} else getSupportFragmentManager().popBackStack();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue