Loading src/com/android/launcher3/AppFilter.java +5 −0 Original line number Diff line number Diff line package com.android.launcher3; import android.content.ComponentName; import android.content.Context; public class AppFilter { public static AppFilter newInstance(Context context) { return Utilities.getOverrideObject(AppFilter.class, context, R.string.app_filter_class); } public boolean shouldShowApp(ComponentName app) { return true; } Loading src/com/android/launcher3/Launcher.java +1 −1 Original line number Diff line number Diff line Loading @@ -3970,7 +3970,7 @@ public class Launcher extends BaseActivity * refreshes the widgets and shortcuts associated with the given package/user */ public void refreshAndBindWidgetsForPackageUser(@Nullable PackageUserKey packageUser) { mModel.refreshAndBindWidgetsAndShortcuts(this, mWidgetsView.isEmpty(), packageUser); mModel.refreshAndBindWidgetsAndShortcuts(packageUser); } public void lockScreenOrientation() { Loading src/com/android/launcher3/LauncherAppState.java +1 −3 Original line number Diff line number Diff line Loading @@ -93,9 +93,7 @@ public class LauncherAppState { mInvariantDeviceProfile = new InvariantDeviceProfile(mContext); mIconCache = new IconCache(mContext, mInvariantDeviceProfile); mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache); mModel = new LauncherModel(this, mIconCache, Utilities.getOverrideObject(AppFilter.class, mContext, R.string.app_filter_class)); mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext)); LauncherAppsCompat.getInstance(mContext).addOnAppsChangedCallback(mModel); Loading src/com/android/launcher3/LauncherModel.java +140 −148 File changed.Preview size limit exceeded, changes collapsed. Show changes src/com/android/launcher3/model/BgDataModel.java +10 −0 Original line number Diff line number Diff line Loading @@ -90,11 +90,21 @@ public class BgDataModel { */ public final Map<ShortcutKey, MutableInt> pinnedShortcutCounts = new HashMap<>(); /** * True if the launcher has permission to access deep shortcuts. */ public boolean hasShortcutHostPermission; /** * Maps all launcher activities to the id's of their shortcuts (if they have any). */ public final MultiHashMap<ComponentKey, String> deepShortcutMap = new MultiHashMap<>(); /** * Entire list of widgets. */ public final WidgetsModel widgetsModel = new WidgetsModel(); /** * Clears all the data */ Loading Loading
src/com/android/launcher3/AppFilter.java +5 −0 Original line number Diff line number Diff line package com.android.launcher3; import android.content.ComponentName; import android.content.Context; public class AppFilter { public static AppFilter newInstance(Context context) { return Utilities.getOverrideObject(AppFilter.class, context, R.string.app_filter_class); } public boolean shouldShowApp(ComponentName app) { return true; } Loading
src/com/android/launcher3/Launcher.java +1 −1 Original line number Diff line number Diff line Loading @@ -3970,7 +3970,7 @@ public class Launcher extends BaseActivity * refreshes the widgets and shortcuts associated with the given package/user */ public void refreshAndBindWidgetsForPackageUser(@Nullable PackageUserKey packageUser) { mModel.refreshAndBindWidgetsAndShortcuts(this, mWidgetsView.isEmpty(), packageUser); mModel.refreshAndBindWidgetsAndShortcuts(packageUser); } public void lockScreenOrientation() { Loading
src/com/android/launcher3/LauncherAppState.java +1 −3 Original line number Diff line number Diff line Loading @@ -93,9 +93,7 @@ public class LauncherAppState { mInvariantDeviceProfile = new InvariantDeviceProfile(mContext); mIconCache = new IconCache(mContext, mInvariantDeviceProfile); mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache); mModel = new LauncherModel(this, mIconCache, Utilities.getOverrideObject(AppFilter.class, mContext, R.string.app_filter_class)); mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext)); LauncherAppsCompat.getInstance(mContext).addOnAppsChangedCallback(mModel); Loading
src/com/android/launcher3/LauncherModel.java +140 −148 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/com/android/launcher3/model/BgDataModel.java +10 −0 Original line number Diff line number Diff line Loading @@ -90,11 +90,21 @@ public class BgDataModel { */ public final Map<ShortcutKey, MutableInt> pinnedShortcutCounts = new HashMap<>(); /** * True if the launcher has permission to access deep shortcuts. */ public boolean hasShortcutHostPermission; /** * Maps all launcher activities to the id's of their shortcuts (if they have any). */ public final MultiHashMap<ComponentKey, String> deepShortcutMap = new MultiHashMap<>(); /** * Entire list of widgets. */ public final WidgetsModel widgetsModel = new WidgetsModel(); /** * Clears all the data */ Loading