diff options
author | Yorke Lee <yorkelee@google.com> | 2014-09-27 20:20:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-27 20:20:12 +0000 |
commit | 58759abe8d9786186608377a55f35ec3d14bb989 (patch) | |
tree | 9e0e3d0a3393d290bb20d402ae3087a21e61bebf /InCallUI | |
parent | 375a804f4151f81b0d3b449d7e96849b98356dcd (diff) | |
parent | e64eaa9727e2eecafb3d4d67eff6ae61c43535bd (diff) |
Merge "Fix for not being able to return to InCallUI after accepting call via BT" into lmp-dev
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java index aa9cc744c..6f3d1b399 100644 --- a/InCallUI/src/com/android/incallui/InCallPresenter.java +++ b/InCallUI/src/com/android/incallui/InCallPresenter.java @@ -631,11 +631,13 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener { */ public void bringToForeground(boolean showDialpad) { // Before we bring the incall UI to the foreground, we check to see if: - // 1. We've already started the activity once for this session - // 2. If it exists, the activity is not already in the foreground - // 3. We are in a state where we want to show the incall ui - if (mIsActivityPreviouslyStarted && !isShowingInCallUi() && - mInCallState != InCallState.NO_CALLS) { + // 1. It is not currently in the foreground + // 2. We are in a state where we want to show the incall ui (i.e. there are calls to + // be displayed) + // If the activity hadn't actually been started previously, yet there are still calls + // present (e.g. a call was accepted by a bluetooth or wired headset), we want to + // bring it up the UI regardless. + if (!isShowingInCallUi() && mInCallState != InCallState.NO_CALLS) { showInCall(showDialpad, false /* newOutgoingCall */); } } |