diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-12-19 01:38:34 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-12-19 01:38:34 +0000 |
commit | d55b09c780dad2fdbc851e60c7fd05f531b10425 (patch) | |
tree | 985185fd12e676d53bbe361968e69242d087d482 /java/com/android/incallui/NewReturnToCallController.java | |
parent | 7393d2481003d0df31d061ddb8973cc0f39ac487 (diff) | |
parent | f539f7885be23d3aff470e573c70d52db3b2a878 (diff) |
Merge changes I4e2ee34f,Ic53ca21f,I68d16567
* changes:
Bubble v2 logging.
Ensure we do not have a null data string before checking for Duo
Bug: 70402588
Diffstat (limited to 'java/com/android/incallui/NewReturnToCallController.java')
-rw-r--r-- | java/com/android/incallui/NewReturnToCallController.java | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/java/com/android/incallui/NewReturnToCallController.java b/java/com/android/incallui/NewReturnToCallController.java index d3d993027..ad49d6828 100644 --- a/java/com/android/incallui/NewReturnToCallController.java +++ b/java/com/android/incallui/NewReturnToCallController.java @@ -53,8 +53,6 @@ import java.util.List; */ public class NewReturnToCallController implements InCallUiListener, Listener, AudioModeListener { - public static final String RETURN_TO_CALL_EXTRA_KEY = "RETURN_TO_CALL_BUBBLE"; - private final Context context; @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) @@ -78,18 +76,12 @@ public class NewReturnToCallController implements InCallUiListener, Listener, Au this.context = context; this.contactInfoCache = contactInfoCache; - toggleSpeaker = createActionIntent(ReturnToCallActionReceiver.ACTION_TOGGLE_SPEAKER); + toggleSpeaker = createActionIntent(NewReturnToCallActionReceiver.ACTION_TOGGLE_SPEAKER); showSpeakerSelect = - createActionIntent(ReturnToCallActionReceiver.ACTION_SHOW_AUDIO_ROUTE_SELECTOR); - toggleMute = createActionIntent(ReturnToCallActionReceiver.ACTION_TOGGLE_MUTE); - endCall = createActionIntent(ReturnToCallActionReceiver.ACTION_END_CALL); - - Intent activityIntent = InCallActivity.getIntent(context, false, false, false); - activityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - activityIntent.putExtra(RETURN_TO_CALL_EXTRA_KEY, true); - fullScreen = - PendingIntent.getActivity( - context, InCallActivity.PendingIntentRequestCodes.BUBBLE, activityIntent, 0); + createActionIntent(NewReturnToCallActionReceiver.ACTION_SHOW_AUDIO_ROUTE_SELECTOR); + toggleMute = createActionIntent(NewReturnToCallActionReceiver.ACTION_TOGGLE_MUTE); + endCall = createActionIntent(NewReturnToCallActionReceiver.ACTION_END_CALL); + fullScreen = createActionIntent(NewReturnToCallActionReceiver.ACTION_RETURN_TO_CALL); InCallPresenter.getInstance().addInCallUiListener(this); CallList.getInstance().addListener(this); @@ -280,9 +272,9 @@ public class NewReturnToCallController implements InCallUiListener, Listener, Au @NonNull private PendingIntent createActionIntent(String action) { - Intent toggleSpeaker = new Intent(context, ReturnToCallActionReceiver.class); - toggleSpeaker.setAction(action); - return PendingIntent.getBroadcast(context, 0, toggleSpeaker, 0); + Intent intent = new Intent(context, NewReturnToCallActionReceiver.class); + intent.setAction(action); + return PendingIntent.getBroadcast(context, 0, intent, 0); } @NonNull |