summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-12-17 00:50:08 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-17 00:50:08 +0000
commite9532d40c0da30226fd7fbe8a8622cefc4abafad (patch)
treed7deccb1d95ba6ea5fbfca5f07823ef46514b322
parent5d321f19ef20ba9785e725483beee3da12da9313 (diff)
parent6d679379ad1ac6482e6341243b587358219cdb68 (diff)
am 413a0209: am 910073d7: am 5996246f: Merge "Revert "Allow back to be pressed while in incoming call screen"" into lmp-mr1-dev
* commit '413a020935811b6f0aac76e2f9473234bdea786b': Revert "Allow back to be pressed while in incoming call screen"
-rw-r--r--InCallUI/src/com/android/incallui/InCallActivity.java7
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 006936411..6f48a359b 100644
--- a/InCallUI/src/com/android/incallui/InCallActivity.java
+++ b/InCallUI/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();
}