From ff0ea037bf7fd82ace6219395f2f02dba6c4e674 Mon Sep 17 00:00:00 2001 From: Guojing Yuan Date: Tue, 12 Nov 2024 18:40:43 +0000 Subject: [PATCH] Remove the margin in Device Detail page Change-Id: I1add40d94bf1a433d303866353e08a3d790db1ae Fix: 377517620 Test: manual Flag: EXEMPT bugfix --- .../bluetooth/BluetoothDetailsCompanionAppsController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/android/settings/bluetooth/BluetoothDetailsCompanionAppsController.java b/src/com/android/settings/bluetooth/BluetoothDetailsCompanionAppsController.java index 93e1ff54574..b741f0833f0 100644 --- a/src/com/android/settings/bluetooth/BluetoothDetailsCompanionAppsController.java +++ b/src/com/android/settings/bluetooth/BluetoothDetailsCompanionAppsController.java @@ -87,6 +87,12 @@ public class BluetoothDetailsCompanionAppsController extends BluetoothDetailsCon mProfilesContainer.setLayoutResource(R.layout.preference_companion_app); } + @Override + public boolean isAvailable() { + // Do not show this preference for now. More details in b/191992001#comment7 + return false; + } + private List getAssociations(String address) { return filter( mCompanionDeviceManager.getAllAssociations(),