summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorSam Lin <samlin@google.com>2013-11-06 18:20:53 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-06 18:20:53 -0800
commitd27f170a22d9374cadfa2d65a8e920708ef88f9d (patch)
tree8d3c635219064fbcd7f153e81c1a81b757b96e65 /InCallUI
parent847e14d323c4bdb7d80c009230fab7439238f922 (diff)
parentcfa2eca503227c54c054d776cdc040f5b442791e (diff)
am 84fa4c5b: am 4fa3514d: am 42d55df9: Disable HW BACK key at the incoming-call screen
* commit '84fa4c5b56882e21f89feb71cd6d2ae0ae6682ad': Disable HW BACK key at the incoming-call screen
Diffstat (limited to 'InCallUI')
-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 d018b9d8a..36fb3897a 100644
--- a/InCallUI/src/com/android/incallui/InCallActivity.java
+++ b/InCallUI/src/com/android/incallui/InCallActivity.java
@@ -202,6 +202,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 inconing call");
+ return;
+ }
+
// Nothing special to do. Fall back to the default behavior.
super.onBackPressed();
}