Merge "Fix concurrent modification error in ShortcutService" into sc-dev
This commit is contained in:
@@ -1213,7 +1213,9 @@ public class ShortcutService extends IShortcutService.Stub {
|
|||||||
final String pkg = shortcutInfo.getPackage();
|
final String pkg = shortcutInfo.getPackage();
|
||||||
final int userId = shortcutInfo.getUserId();
|
final int userId = shortcutInfo.getUserId();
|
||||||
final String id = shortcutInfo.getId();
|
final String id = shortcutInfo.getId();
|
||||||
getPackageShortcutsLocked(pkg, userId).mutateShortcut(id, shortcutInfo, cb);
|
synchronized (mLock) {
|
||||||
|
getPackageShortcutsLocked(pkg, userId).mutateShortcut(id, shortcutInfo, cb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return the last reset time. */
|
/** Return the last reset time. */
|
||||||
|
|||||||
Reference in New Issue
Block a user