mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Improve Hybird hotseat cache support
Loads list of cached apps and shows predicted app icons with the rest of workspace items. -> Extracted prediction caching logic into a model layer Bug: 155029837 Test: Manual Change-Id: I6981594a910f5fe4e8e8cf8fe39db0cb856e7acd
This commit is contained in:
@@ -92,6 +92,11 @@ public class BgDataModel {
|
||||
*/
|
||||
public final Map<ShortcutKey, MutableInt> pinnedShortcutCounts = new HashMap<>();
|
||||
|
||||
/**
|
||||
* List of all cached predicted items visible on home screen
|
||||
*/
|
||||
public final ArrayList<AppInfo> cachedPredictedItems = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* True if the launcher has permission to access deep shortcuts.
|
||||
*/
|
||||
@@ -366,5 +371,10 @@ public class BgDataModel {
|
||||
void bindDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMap);
|
||||
|
||||
void bindAllApplications(AppInfo[] apps);
|
||||
|
||||
/**
|
||||
* Binds predicted appInfos at at available prediction slots.
|
||||
*/
|
||||
void bindPredictedItems(List<AppInfo> appInfos, IntArray ranks);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user