From bfd6b1f516de89933d7fb973e6f909a22007ff8a Mon Sep 17 00:00:00 2001 From: yueg Date: Mon, 16 Oct 2017 10:31:11 -0700 Subject: Finish AudioRouteSelectorActivity in onAudioRouteSelected. In previous change, we use AudioRouteSelectorDialogFragment.onCancel() instead of onDismiss(). And selecting an item only calls onDismiss() instead of onCancel(), so the activity is not finished. In this change we finish the activity when an item is selected. Test: manual PiperOrigin-RevId: 172342660 Change-Id: I2d34874ae9e1a7e5ad858b4f1ba855b48647d995 --- java/com/android/incallui/AudioRouteSelectorActivity.java | 1 + 1 file changed, 1 insertion(+) (limited to 'java') diff --git a/java/com/android/incallui/AudioRouteSelectorActivity.java b/java/com/android/incallui/AudioRouteSelectorActivity.java index 2fdc89aa8..8d166649c 100644 --- a/java/com/android/incallui/AudioRouteSelectorActivity.java +++ b/java/com/android/incallui/AudioRouteSelectorActivity.java @@ -38,6 +38,7 @@ public class AudioRouteSelectorActivity extends FragmentActivity @Override public void onAudioRouteSelected(int audioRoute) { TelecomAdapter.getInstance().setAudioRoute(audioRoute); + finish(); } @Override -- cgit v1.2.3