Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d948b85d authored by Mike Lockwood's avatar Mike Lockwood Committed by Android Git Automerger
Browse files

am 611af238: DO NOT MERGE: UsbManager: Don\'t display activity picker if there...

am 611af238: DO NOT MERGE: UsbManager: Don\'t display activity picker if there are no apps available for an accessory

* commit '611af238':
  DO NOT MERGE: UsbManager: Don't display activity picker if there are no apps available for an accessory
parents e91e5f6e 611af238
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -394,8 +394,11 @@ class UsbDeviceSettingsManager {
            defaultPackage = mAccessoryPreferenceMap.get(new AccessoryFilter(accessory));
        }

        if (defaultPackage != null) {
        int count = matches.size();
        // don't show the resolver activity if there are no choices available
        if (count == 0) return;

        if (defaultPackage != null) {
            for (int i = 0; i < count; i++) {
                ResolveInfo rInfo = matches.get(i);
                if (rInfo.activityInfo != null &&