am 611af238: DO NOT MERGE: UsbManager: Don\'t display activity picker if there are no apps available for an accessory
* commit '611af238185cf924a425a1a2154b8439b8f8d7a5': DO NOT MERGE: UsbManager: Don't display activity picker if there are no apps available for an accessory
This commit is contained in:
@@ -394,8 +394,11 @@ class UsbDeviceSettingsManager {
|
||||
defaultPackage = mAccessoryPreferenceMap.get(new AccessoryFilter(accessory));
|
||||
}
|
||||
|
||||
int count = matches.size();
|
||||
// don't show the resolver activity if there are no choices available
|
||||
if (count == 0) return;
|
||||
|
||||
if (defaultPackage != null) {
|
||||
int count = matches.size();
|
||||
for (int i = 0; i < count; i++) {
|
||||
ResolveInfo rInfo = matches.get(i);
|
||||
if (rInfo.activityInfo != null &&
|
||||
|
||||
Reference in New Issue
Block a user