mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "Fixing some launcher model tests" into main
This commit is contained in:
@@ -123,6 +123,7 @@ import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CancellationException;
|
||||
|
||||
@@ -185,7 +186,7 @@ public class LoaderTask implements Runnable {
|
||||
mLauncherBinder = launcherBinder;
|
||||
mLauncherApps = mApp.getContext().getSystemService(LauncherApps.class);
|
||||
mUserManager = mApp.getContext().getSystemService(UserManager.class);
|
||||
mUserCache = UserCache.getInstance(mApp.getContext());
|
||||
mUserCache = UserCache.INSTANCE.get(mApp.getContext());
|
||||
mSessionHelper = InstallSessionHelper.INSTANCE.get(mApp.getContext());
|
||||
mIconCache = mApp.getIconCache();
|
||||
mUserManagerState = userManagerState;
|
||||
@@ -247,7 +248,7 @@ 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)
|
||||
if (mApp.getInvariantDeviceProfile().dbFile.equals(mDbName)) {
|
||||
if (Objects.equals(mApp.getInvariantDeviceProfile().dbFile, mDbName)) {
|
||||
verifyNotStopped();
|
||||
sanitizeFolders(mItemsDeleted);
|
||||
sanitizeWidgetsShortcutsAndPackages();
|
||||
|
||||
Reference in New Issue
Block a user