Merge "[CDM bug] Fix CDM crash when there's no CDM service" into tm-dev am: e2a47a2c3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16988949 Change-Id: I9a1e51d7da578a5fc684fb2f772286f6110c13bf
This commit is contained in:
@@ -118,13 +118,14 @@ class CompanionApplicationController {
|
||||
|
||||
serviceConnectors = CollectionUtils.map(companionServices, componentName ->
|
||||
new CompanionDeviceServiceConnector(mContext, userId, componentName));
|
||||
mBoundCompanionApplications.setValueForPackage(userId, packageName, serviceConnectors);
|
||||
}
|
||||
|
||||
if (serviceConnectors.isEmpty()) {
|
||||
Slog.e(TAG, "Can't find CompanionDeviceService implementer in package: "
|
||||
+ packageName + ". Please check if they are correctly declared.");
|
||||
return;
|
||||
if (serviceConnectors.isEmpty()) {
|
||||
Slog.e(TAG, "Can't find CompanionDeviceService implementer in package: "
|
||||
+ packageName + ". Please check if they are correctly declared.");
|
||||
return;
|
||||
}
|
||||
|
||||
mBoundCompanionApplications.setValueForPackage(userId, packageName, serviceConnectors);
|
||||
}
|
||||
|
||||
// The first connector in the list is always the primary connector: set a listener to it.
|
||||
|
||||
Reference in New Issue
Block a user