From 49045fb3617eda6a65808c929637eb38effd6a5c Mon Sep 17 00:00:00 2001 From: Haijie Hong Date: Mon, 18 Nov 2024 13:08:13 +0800 Subject: [PATCH] Remove the extra space above Spatial audio toggle BUG: 343317785 Test: local tested Flag: com.android.settings.flags.enable_bluetooth_device_details_polish Change-Id: I56bd6438e9f6589f388c0355460e6c5ba9cb2823 --- .../bluetooth/BluetoothDetailsSpatialAudioController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/settings/bluetooth/BluetoothDetailsSpatialAudioController.java b/src/com/android/settings/bluetooth/BluetoothDetailsSpatialAudioController.java index 398edb6b991..b878612fa9f 100644 --- a/src/com/android/settings/bluetooth/BluetoothDetailsSpatialAudioController.java +++ b/src/com/android/settings/bluetooth/BluetoothDetailsSpatialAudioController.java @@ -150,6 +150,9 @@ public class BluetoothDetailsSpatialAudioController extends BluetoothDetailsCont @Override protected void init(PreferenceScreen screen) { mProfilesContainer = screen.findPreference(getPreferenceKey()); + if (com.android.settings.flags.Flags.enableBluetoothDeviceDetailsPolish()) { + mProfilesContainer.setLayoutResource(R.layout.preference_category_bluetooth_no_padding); + } refresh(); }