From 475f87bedce8368043bf844c164d0ee543ea304d Mon Sep 17 00:00:00 2001 From: Yiyi Shen Date: Tue, 14 Nov 2023 18:03:18 +0800 Subject: [PATCH] [Audiosharing] Impl the join audio sharing dialog. Show the dialog when the first or second eligible remote device connected during the sharing session; Or when the second eligible remote device connected and no sharing session. Flagged with enable_le_audio_sharing Bug: 305620450 Test: Manual Change-Id: If59025d60821b00c169e0d739f4b68c31ce4bbbd --- res/layout/dialog_audio_sharing_join.xml | 53 ++++++++ ...udioSharingDevicePreferenceController.java | 123 ++++++++++++++--- .../AudioSharingJoinDialogFragment.java | 127 ++++++++++++++++++ 3 files changed, 287 insertions(+), 16 deletions(-) create mode 100644 res/layout/dialog_audio_sharing_join.xml create mode 100644 src/com/android/settings/connecteddevice/audiosharing/AudioSharingJoinDialogFragment.java diff --git a/res/layout/dialog_audio_sharing_join.xml b/res/layout/dialog_audio_sharing_join.xml new file mode 100644 index 00000000000..42d964a6b42 --- /dev/null +++ b/res/layout/dialog_audio_sharing_join.xml @@ -0,0 +1,53 @@ + + + + + + + + + +