Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41a42c73 authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 50d8e5b0: am d3836e9d: Merge "Revert "Allow home to be pressed while in...

am 50d8e5b0: am d3836e9d: Merge "Revert "Allow home to be pressed while in incoming call screen"" into lmp-mr1-dev

* commit '50d8e5b0':
  Revert "Allow home to be pressed while in incoming call screen"
parents aa4e271b 50d8e5b0
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2452,6 +2452,15 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    return -1;
                }

                // If an incoming call is ringing, HOME is totally disabled.
                // (The user is already on the InCallUI at this point,
                // and his ONLY options are to answer or reject the call.)
                TelecomManager telecomManager = getTelecommService();
                if (telecomManager != null && telecomManager.isRinging()) {
                    Log.i(TAG, "Ignoring HOME; there's a ringing incoming call.");
                    return -1;
                }

                // Delay handling home if a double-tap is possible.
                if (mDoubleTapOnHomeBehavior != DOUBLE_TAP_HOME_NOTHING) {
                    mHandler.removeCallbacks(mHomeDoubleTapTimeoutRunnable); // just in case