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

Commit 97bedd25 authored by Pinyao Ting's avatar Pinyao Ting Committed by Android (Google) Code Review
Browse files

Merge "Fix concurrent modification error in ShortcutService" into sc-dev

parents 07791ca5 018017e2
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")