diff options
author | Yorke Lee <yorkelee@google.com> | 2014-09-27 20:33:54 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-27 20:33:54 +0000 |
commit | 0d320263deae0fe0d8d33962a95b200223561358 (patch) | |
tree | 8573a4541a34c5011889b55fdcd9d5779563da94 /InCallUI | |
parent | 63310e89fbb86706c566a14733eed63f0d870358 (diff) | |
parent | d555350cbc2ca09a6edf91760d9ca3d6b1663240 (diff) |
am 78637a69: am 2d09f156: am 720686d9: am 63c85b7b: Merge "Fix for not being able to return to InCallUI after accepting call via BT" into lmp-dev
* commit '78637a69586804959dc20654a2131789669af2db':
Fix for not being able to return to InCallUI after accepting call via BT
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 */); } } |