diff options
author | Yorke Lee <yorkelee@google.com> | 2014-12-15 23:22:57 +0000 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-12-15 23:22:57 +0000 |
commit | b5a3128869281c97fe75dee77403857b215585cd (patch) | |
tree | 37978b6232a6c35dd586d00a6b951f0f4b3555b3 | |
parent | 4713b98345b8c890c303a595cc099dc7e60437df (diff) |
Revert "Allow back to be pressed while in incoming call screen"
This reverts commit bd9ccd501ebd83508dfe52121e0f4827cc6e1fa3.
Bug: 18742942
Change-Id: I8016ddae8addb56b4d6350748628fec351e6531a
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index bbec3bce0..a6917c86a 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -319,6 +319,13 @@ public class InCallActivity extends Activity { return; } + // Always disable the Back key while an incoming call is ringing + final Call call = CallList.getInstance().getIncomingCall(); + if (call != null) { + Log.d(this, "Consume Back press for an incoming call"); + return; + } + // Nothing special to do. Fall back to the default behavior. super.onBackPressed(); } |