Fix bug when bluetooth profile is not in more settings
BUG: 343317785 Test: local tested Flag: com.android.settings.flags.enable_bluetooth_device_details_polish Change-Id: I3f53c3b0b60997aa3a1685fe2512ff2f37b32d18
This commit is contained in:
@@ -139,7 +139,7 @@ class DeviceDetailsFragmentFormatterImpl(
|
||||
viewModel
|
||||
.getItems(fragmentType)
|
||||
?.filterIsInstance<DeviceSettingConfigItemModel.BuiltinItem.BluetoothProfilesItem>()
|
||||
?.first()
|
||||
?.firstOrNull()
|
||||
?.invisibleProfiles
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user