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

Commit ccd58ab9 authored by Charlie Anderson's avatar Charlie Anderson Committed by Android (Google) Code Review
Browse files

Merge "Add additonal logging around PackageUpdatedTask to detect app updates for User" into main

parents 34351f69 0c44432d
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -223,7 +223,8 @@ public class AllAppsList {
                    if (DEBUG) {
                        Log.w(TAG, "updatePromiseInstallInfo: removing app due to install"
                                + " failure and appInfo not startable."
                                + " package=" + appInfo.getTargetPackage());
                                + " package=" + appInfo.getTargetPackage()
                                + ", user=" + user);
                    }
                    removeApp(i);
                }
@@ -319,7 +320,8 @@ public class AllAppsList {
                    if (!findActivity(matches, applicationInfo.componentName)) {
                        if (DEBUG) {
                            Log.w(TAG, "Changing shortcut target due to app component name change."
                                    + " package=" + packageName);
                                    + " component=" + applicationInfo.componentName
                                    + ", user=" + user);
                        }
                        removeApp(i);
                    }
@@ -346,8 +348,9 @@ public class AllAppsList {
        } else {
            // Remove all data for this package.
            if (DEBUG) {
                Log.w(TAG, "updatePromiseInstallInfo: no Activities matched updated package,"
                        + " removing all apps from package=" + packageName);
                Log.w(TAG, "updatePackage: no Activities matched updated package,"
                        + " removing any AppInfo with package=" + packageName
                        + ", user=" + user);
            }
            for (int i = data.size() - 1; i >= 0; i--) {
                final AppInfo applicationInfo = data.get(i);
+2 −1
Original line number Diff line number Diff line
@@ -119,7 +119,8 @@ public class PackageUpdatedTask implements ModelUpdateTask {
        final HashMap<String, List<LauncherActivityInfo>> activitiesLists = new HashMap<>();
        if (DEBUG) {
            Log.d(TAG, "Package updated: mOp=" + getOpString()
                    + " packages=" + Arrays.toString(packages));
                    + " packages=" + Arrays.toString(packages)
                    + ", user=" + mUser);
        }
        switch (mOp) {
            case OP_ADD: {