Added comment

pull/209/head
M66B 3 years ago
parent daa72b253f
commit 457ecbff6d

@ -783,6 +783,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
public void performBack() { public void performBack() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) { if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
// https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/Activity.java#3896
ActionBar ab = getSupportActionBar(); ActionBar ab = getSupportActionBar();
if (ab != null && ab.collapseActionView()) if (ab != null && ab.collapseActionView())
return; return;
@ -793,7 +794,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
finish(); finish();
} }
public void onBackPressedFragment() { public void onBackPressedFragment() {
performBack(); performBack();
} }

Loading…
Cancel
Save