am 8c63f98b: Merge "Allow home to be pressed while in incoming call screen" into lmp-mr1-dev

* commit '8c63f98be5c35e0136eebbf4b5890de535fbfdf5':
  Allow home to be pressed while in incoming call screen
This commit is contained in:
Yorke Lee
2014-10-14 19:39:31 +00:00
committed by Android Git Automerger

View 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