summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2014-02-27 06:27:06 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-27 06:27:06 -0800
commit1cd204555beea34d926a203e9b406357fdf746c5 (patch)
treee056413f48c4186c5c5badf993ca65f0f02fb1b3
parent12e3cf4d5d8ec4438acb7b171fd2848aaea370da (diff)
parenta4994269644d40183d2172405dc4a0a067c2089f (diff)
am 757f6653: Merge "only disable the system bars when inCallActivity is visible"
* commit '757f6653ce8686f5e853aa52bef7c77f6f110536': only disable the system bars when inCallActivity is visible
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 5551eb869..6260e9547 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -264,11 +264,6 @@ public class InCallPresenter implements CallList.Listener {
Log.i(this, "Phone switching state: " + mInCallState + " -> " + newState);
mInCallState = newState;
- // Disable notification shade and soft navigation buttons
- if (newState.isIncoming()) {
- CallCommandClient.getInstance().setSystemBarNavigationEnabled(false);
- }
-
for (IncomingCallListener listener : mIncomingCallListeners) {
listener.onIncomingCall(mInCallState, call);
}
@@ -411,6 +406,9 @@ public class InCallPresenter implements CallList.Listener {
if (showing) {
mIsActivityPreviouslyStarted = true;
}
+
+ final boolean shouldLockBars = showing && mInCallState.isIncoming();
+ CallCommandClient.getInstance().setSystemBarNavigationEnabled(!shouldLockBars);
}
/**