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

Commit e495463d authored by lpeter's avatar lpeter
Browse files

Fix RegisteredServicesCacheTest failure

Flag: android.content.pm.optimize_parsing_in_registered_services_cache

Bug: 391517204
Test: atest RegisteredServicesCacheTest
Change-Id: I9902653edd5d86ddad9164dfe2341b73065bb257
parent 82da37e4
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -527,8 +527,8 @@ public abstract class RegisteredServicesCache<V> {
                    lastUpdateTime = packageInfo.lastUpdateTime;
                } catch (NameNotFoundException | SecurityException e) {
                    Slog.d(TAG, "Fail to get the PackageInfo in generateServicesMap: " + e);
                    continue;
                }
                if (lastUpdateTime >= 0) {
                    ServiceInfo<V> serviceInfo = getServiceInfoFromServiceCache(componentName,
                            lastUpdateTime);
                    if (serviceInfo != null) {
@@ -536,6 +536,7 @@ public abstract class RegisteredServicesCache<V> {
                        continue;
                    }
                }
            }
            try {
                ServiceInfo<V> info = parseServiceInfo(resolveInfo, lastUpdateTime);
                if (info == null) {