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

Commit 4a3070f8 authored by Jakob Schneider's avatar Jakob Schneider Committed by Songchun Fan
Browse files

Fix a race condition where the icon directory gets deleted after a

successful archiving installs.

Bug: 324422097
Test: N/A it's a RC
Change-Id: I4ef92debc58e2c27bd98d7b97db2175252ee05ba
parent 1d8fc144
Loading
Loading
Loading
Loading
+12 −15
Original line number Diff line number Diff line
@@ -354,8 +354,6 @@ public class PackageArchiver {
                ps.setArchiveState(/* archiveState= */ null, userId);
            }
        }
        mPm.mBackgroundHandler.post(
                () -> {
        File iconsDir = getIconsDir(packageName, userId);
        if (!iconsDir.exists()) {
            return;
@@ -368,7 +366,6 @@ public class PackageArchiver {
                Slog.e(TAG, "Deleted icons at " + iconsDir.getAbsolutePath());
            }
        }
                });
    }

    @Nullable