From b36d91d1279e338d291594eec38ab53318657a85 Mon Sep 17 00:00:00 2001 From: chelseahao Date: Fri, 9 Aug 2024 17:49:47 +0800 Subject: Highlight audio sharing button when audio sharing is on. Test: atest Bug: 308368124 Flag: com.android.settingslib.flags.enable_le_audio_sharing Change-Id: Id440c3f50e7473e1370f11ff52580497a7b31252 --- .../res/color/audio_sharing_btn_text_color.xml | 21 +++++++ .../res/drawable/audio_sharing_btn_background.xml | 21 +++++++ .../SystemUI/res/layout/bluetooth_tile_dialog.xml | 3 +- packages/SystemUI/res/values/styles.xml | 6 ++ .../bluetooth/qsdialog/AudioSharingInteractor.kt | 10 +++- .../qsdialog/BluetoothTileDialogDelegate.kt | 4 +- .../qsdialog/BluetoothTileDialogViewModel.kt | 32 +++++++---- .../qsdialog/AudioSharingInteractorTest.kt | 6 +- .../qsdialog/BluetoothTileDialogDelegateTest.kt | 66 ++++++++++++++++++++++ 9 files changed, 151 insertions(+), 18 deletions(-) create mode 100644 packages/SystemUI/res/color/audio_sharing_btn_text_color.xml create mode 100644 packages/SystemUI/res/drawable/audio_sharing_btn_background.xml diff --git a/packages/SystemUI/res/color/audio_sharing_btn_text_color.xml b/packages/SystemUI/res/color/audio_sharing_btn_text_color.xml new file mode 100644 index 000000000000..b72835e6475a --- /dev/null +++ b/packages/SystemUI/res/color/audio_sharing_btn_text_color.xml @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/audio_sharing_btn_background.xml b/packages/SystemUI/res/drawable/audio_sharing_btn_background.xml new file mode 100644 index 000000000000..310e095205a0 --- /dev/null +++ b/packages/SystemUI/res/drawable/audio_sharing_btn_background.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/bluetooth_tile_dialog.xml b/packages/SystemUI/res/layout/bluetooth_tile_dialog.xml index 27b80066e0f4..b4eaa407889a 100644 --- a/packages/SystemUI/res/layout/bluetooth_tile_dialog.xml +++ b/packages/SystemUI/res/layout/bluetooth_tile_dialog.xml @@ -258,7 +258,7 @@