Merge "[CDM bug] Fix CDM crash when there's no CDM service" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e2a47a2c3a
@@ -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