mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Generalize the icon popup menu types.
Generalized popup menu types and logic to allow wider uses outside of launcher. Bug: 198438631 Test: long pressed launcher icons and pressed menu options Change-Id: Iadcbb1796496c0061dcee362784e426ff55dc94a
This commit is contained in:
@@ -377,7 +377,7 @@ public final class WellbeingModel extends BgObjectWithLooper {
|
||||
/**
|
||||
* Shortcut factory for generating wellbeing action
|
||||
*/
|
||||
public static final SystemShortcut.Factory SHORTCUT_FACTORY =
|
||||
public static final SystemShortcut.Factory<BaseDraggingActivity> SHORTCUT_FACTORY =
|
||||
(activity, info) -> (info.getTargetComponent() == null) ? null : INSTANCE.get(activity)
|
||||
.getShortcutForApp(
|
||||
info.getTargetComponent().getPackageName(), info.user.getIdentifier(),
|
||||
|
||||
Reference in New Issue
Block a user