mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 00:50:32 +00:00
parent
a473e3d623
commit
ecf7969c46
@ -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…
Reference in New Issue
Block a user