Merge "When config is changed, update the profile's visibility" into udc-d1-dev

This commit is contained in:
SongFerng Wang
2023-06-09 02:26:16 +00:00
committed by Android (Google) Code Review

View File

@@ -145,8 +145,8 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll
profilePref.setEnabled(!mCachedDevice.isBusy()); profilePref.setEnabled(!mCachedDevice.isBusy());
} }
if (profile instanceof LeAudioProfile && !mIsLeAudioToggleEnabled) { if (profile instanceof LeAudioProfile) {
profilePref.setVisible(false); profilePref.setVisible(mIsLeAudioToggleEnabled);
} }
if (profile instanceof MapProfile) { if (profile instanceof MapProfile) {