If Pinned Shortcuts aren't available, then check for pinned shortcuts by id/package name
Bug: 356096502 Test: Verified locally that if you hard-code the PINNED shortcut query to not return data, the backup query still allows the deep shortcuts to show up on the home screen. Flag: EXEMPT bug fix Change-Id: I7a9b2d2c3be2ecce38a5af71951f1a12bc1c20ee
This commit is contained in:
1 parent
8da7f25ccb
commit
fa1b2ba983
3 files changed
+59
-1
No files matched your search
@@ -261,6 +261,9 @@ public class LoaderTask implements Runnable {
|
||||
// sanitizeData should not be invoked if the workspace is loaded from a db different
|
||||
// from the main db as defined in the invariant device profile.
|
||||
// (e.g. both grid preview and minimal device mode uses a different db)
|
||||
// TODO(b/384731096): Write Unit Test to make sure sanitizeWidgetsShortcutsAndPackages
|
||||
// actually re-pins shortcuts that are in model but not in ShortcutManager, if possible
|
||||
// after a simulated restore.
|
||||
if (Objects.equals(mApp.getInvariantDeviceProfile().dbFile, mDbName)) {
|
||||
verifyNotStopped();
|
||||
sanitizeFolders(mItemsDeleted);
|
||||
|
||||
Reference in new issue
Block a user