mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Caching the uninstall disabled state for each userHandle
> Removing static access to varios drop targets > Creating a cache at UI level with 5sec timeout Bug: 67104426 Change-Id: Ide6e2e0c01606f9b5fb9281f95dc009873c18fb9
This commit is contained in:
@@ -201,6 +201,10 @@ public abstract class ButtonDropTarget extends TextView
|
||||
|
||||
protected abstract boolean supportsDrop(ItemInfo info);
|
||||
|
||||
public boolean supportsAccessibilityDrop(ItemInfo info) {
|
||||
return supportsDrop(info);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDropEnabled() {
|
||||
return mActive && (mAccessibleDrag ||
|
||||
@@ -241,9 +245,13 @@ public abstract class ButtonDropTarget extends TextView
|
||||
DragLayer.ANIMATION_END_DISAPPEAR, null);
|
||||
}
|
||||
|
||||
public abstract int getAccessibilityAction();
|
||||
|
||||
@Override
|
||||
public void prepareAccessibilityDrop() { }
|
||||
|
||||
public abstract void onAccessibilityDrop(View view, ItemInfo item);
|
||||
|
||||
public abstract void completeDrop(DragObject d);
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user