[CDM Perm Sync] Fix a NPE for Perm Sync toggle
Bug: 290063372 Test: manual test on the breaking build. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8c51d9c71da0212f7f14d9fd958e20a17061db28) Merged-In: I1f0a5c3840a4c97962fa9986d8f67ab0f652015f Change-Id: I1f0a5c3840a4c97962fa9986d8f67ab0f652015f
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
cd8d435005
commit
777fbef46c
@@ -65,6 +65,7 @@ public class BluetoothDetailsDataSyncController extends BluetoothDetailsControll
|
||||
mCompanionDeviceManager = context.getSystemService(CompanionDeviceManager.class);
|
||||
|
||||
mCompanionDeviceManager.getAllAssociations().stream().filter(
|
||||
a -> a.getDeviceMacAddress() != null).filter(
|
||||
a -> Objects.equal(mCachedDevice.getAddress(),
|
||||
a.getDeviceMacAddress().toString().toUpperCase())).max(
|
||||
Comparator.comparingLong(AssociationInfo::getTimeApprovedMs)).ifPresent(
|
||||
|
Reference in New Issue
Block a user