From 457ecbff6d31db289c3faadcd45bb63f3447cb1b Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 14 Jul 2022 19:30:51 +0200 Subject: [PATCH] Added comment --- app/src/main/java/eu/faircode/email/ActivityBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index 9fe67226bd..6784476551 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -783,6 +783,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc public void performBack() { 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(); if (ab != null && ab.collapseActionView()) return; @@ -793,7 +794,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc finish(); } - public void onBackPressedFragment() { performBack(); }