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

Commit 35eeb4e6 authored by Pinyao Ting's avatar Pinyao Ting Committed by Automerger Merge Worker
Browse files

Merge "Fix concurrent modification error in ShortcutService" into sc-dev am: 97bedd25

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14605994

Change-Id: I70cea4d270892e275b04c59ef0e47b02561719fe
parents a81822dc 97bedd25
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1213,8 +1213,10 @@ public class ShortcutService extends IShortcutService.Stub {
        final String pkg = shortcutInfo.getPackage();
        final int userId = shortcutInfo.getUserId();
        final String id = shortcutInfo.getId();
        synchronized (mLock) {
            getPackageShortcutsLocked(pkg, userId).mutateShortcut(id, shortcutInfo, cb);
        }
    }

    /** Return the last reset time. */
    @GuardedBy("mLock")