Loading services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java +10 −10 Original line number Original line Diff line number Diff line Loading @@ -753,9 +753,19 @@ public class CompanionDeviceManagerService extends SystemService implements Bind } } return notMatch; return notMatch; })); })); restartBleScan(); } } void onAssociationPreRemove(Association association) { void onAssociationPreRemove(Association association) { if (association.isNotifyOnDeviceNearby()) { ServiceConnector<ICompanionDeviceService> serviceConnector = mDeviceListenerServiceConnectors.forUser(association.getUserId()) .get(association.getPackageName()); if (serviceConnector != null) { serviceConnector.unbind(); } } String deviceProfile = association.getDeviceProfile(); String deviceProfile = association.getDeviceProfile(); if (deviceProfile != null) { if (deviceProfile != null) { Association otherAssociationWithDeviceProfile = find( Association otherAssociationWithDeviceProfile = find( Loading Loading @@ -787,16 +797,6 @@ public class CompanionDeviceManagerService extends SystemService implements Bind } } } } } } if (association.isNotifyOnDeviceNearby()) { ServiceConnector<ICompanionDeviceService> serviceConnector = mDeviceListenerServiceConnectors.forUser(association.getUserId()) .get(association.getPackageName()); if (serviceConnector != null) { serviceConnector.unbind(); restartBleScan(); } } } } private void updateSpecialAccessPermissionForAssociatedPackage(Association association) { private void updateSpecialAccessPermissionForAssociatedPackage(Association association) { Loading Loading
services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java +10 −10 Original line number Original line Diff line number Diff line Loading @@ -753,9 +753,19 @@ public class CompanionDeviceManagerService extends SystemService implements Bind } } return notMatch; return notMatch; })); })); restartBleScan(); } } void onAssociationPreRemove(Association association) { void onAssociationPreRemove(Association association) { if (association.isNotifyOnDeviceNearby()) { ServiceConnector<ICompanionDeviceService> serviceConnector = mDeviceListenerServiceConnectors.forUser(association.getUserId()) .get(association.getPackageName()); if (serviceConnector != null) { serviceConnector.unbind(); } } String deviceProfile = association.getDeviceProfile(); String deviceProfile = association.getDeviceProfile(); if (deviceProfile != null) { if (deviceProfile != null) { Association otherAssociationWithDeviceProfile = find( Association otherAssociationWithDeviceProfile = find( Loading Loading @@ -787,16 +797,6 @@ public class CompanionDeviceManagerService extends SystemService implements Bind } } } } } } if (association.isNotifyOnDeviceNearby()) { ServiceConnector<ICompanionDeviceService> serviceConnector = mDeviceListenerServiceConnectors.forUser(association.getUserId()) .get(association.getPackageName()); if (serviceConnector != null) { serviceConnector.unbind(); restartBleScan(); } } } } private void updateSpecialAccessPermissionForAssociatedPackage(Association association) { private void updateSpecialAccessPermissionForAssociatedPackage(Association association) { Loading