diff options
Diffstat (limited to 'java/com/android')
-rw-r--r-- | java/com/android/incallui/InCallPresenter.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/java/com/android/incallui/InCallPresenter.java b/java/com/android/incallui/InCallPresenter.java index 7ea2fadf3..7468b83ac 100644 --- a/java/com/android/incallui/InCallPresenter.java +++ b/java/com/android/incallui/InCallPresenter.java @@ -266,8 +266,6 @@ public class InCallPresenter implements CallList.Listener, AudioModeProvider.Aud private VideoSurfaceTexture localVideoSurfaceTexture; private VideoSurfaceTexture remoteVideoSurfaceTexture; - private MotorolaInCallUiNotifier motorolaInCallUiNotifier; - private SpeakEasyCallManager speakEasyCallManager; private boolean shouldStartInBubbleMode; @@ -398,14 +396,12 @@ public class InCallPresenter implements CallList.Listener, AudioModeProvider.Aud AudioModeProvider.getInstance().addListener(this); - if (motorolaInCallUiNotifier == null) { - // Add listener to notify Telephony process when the incoming call screen is started or - // finished. This is for hiding USSD dialog because the incoming call screen should have - // higher precedence over this dialog. - motorolaInCallUiNotifier = new MotorolaInCallUiNotifier(context); - addInCallUiListener(motorolaInCallUiNotifier); - addListener(motorolaInCallUiNotifier); - } + // Add listener to notify Telephony process when the incoming call screen is started or + // finished. This is for hiding USSD dialog because the incoming call screen should have + // higher precedence over this dialog. + MotorolaInCallUiNotifier motorolaInCallUiNotifier = new MotorolaInCallUiNotifier(context); + addInCallUiListener(motorolaInCallUiNotifier); + addListener(motorolaInCallUiNotifier); this.shouldStartInBubbleMode = shouldStartInBubbleMode(intent); |