OSDN Git Service

Allow home to be pressed while in incoming call screen
authorYorke Lee <yorkelee@google.com>
Fri, 10 Oct 2014 23:51:58 +0000 (16:51 -0700)
committerYorke Lee <yorkelee@google.com>
Fri, 10 Oct 2014 23:52:44 +0000 (23:52 +0000)
Bug: 10692603
Change-Id: I2c213d553013bdd906f0ce54eba90a57bd7ae34c

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

index 99d5848..4b2e8aa 100644 (file)
@@ -2208,15 +2208,6 @@ 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