diff options
author | Yorke Lee <yorkelee@google.com> | 2014-12-17 00:16:42 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-12-17 00:16:43 +0000 |
commit | 5996246fba6af965781f21938e2954c32024e654 (patch) | |
tree | 92345a89ce5fd530cf67a21cc4d6d369b955dbba | |
parent | 4383e5db52f0c5b6cb117141114e7394e3d68a2c (diff) | |
parent | ae3e5b7e380681df530946ce0d39fc6284755401 (diff) | |
download | InCallUI-5996246fba6af965781f21938e2954c32024e654.tar.gz |
Merge "Revert "Allow back to be pressed while in incoming call screen"" into lmp-mr1-dev
-rw-r--r-- | src/com/android/incallui/InCallActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/incallui/InCallActivity.java b/src/com/android/incallui/InCallActivity.java index 00693641..6f48a359 100644 --- a/src/com/android/incallui/InCallActivity.java +++ b/src/com/android/incallui/InCallActivity.java @@ -330,6 +330,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(); } |