[CDM PS] Fix an NPE when the device is not associated
Bug: 290063372 Test: manually tested Change-Id: Ifd55e2849ebaff1340fdf9e61edd75971187e12b
This commit is contained in:
@@ -112,6 +112,11 @@ public class BluetoothDetailsDataSyncController extends BluetoothDetailsControll
|
||||
mPreferenceCategory.addPreference(permSyncPref);
|
||||
}
|
||||
|
||||
if (mAssociationId == DUMMY_ASSOCIATION_ID) {
|
||||
permSyncPref.setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
boolean visible = false;
|
||||
boolean checked = false;
|
||||
PermissionSyncRequest request = mCompanionDeviceManager.getPermissionSyncRequest(
|
||||
|
Reference in New Issue
Block a user