summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/incallui/InCallPresenter.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/incallui/InCallPresenter.java b/src/com/android/incallui/InCallPresenter.java
index aa9cc744..6f3d1b39 100644
--- a/src/com/android/incallui/InCallPresenter.java
+++ b/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 */);
}
}