mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Only inflating taskbar views for valid items
Also enabling view cache for folders Bug: 187353581 Test: Manual Change-Id: I5bc695fd86475f30611bc6b362b4ae93c48c26bb
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
*/
|
||||
package com.android.launcher3.taskbar;
|
||||
|
||||
import static android.view.View.INVISIBLE;
|
||||
import static android.view.View.VISIBLE;
|
||||
|
||||
import android.content.ClipData;
|
||||
import android.content.ClipDescription;
|
||||
import android.content.Intent;
|
||||
@@ -86,7 +89,7 @@ public class TaskbarDragController extends DragController<TaskbarActivityContext
|
||||
mActivity.setTaskbarWindowFullscreen(true);
|
||||
view.post(() -> {
|
||||
startInternalDrag(btv);
|
||||
btv.setAlpha(0);
|
||||
btv.setVisibility(INVISIBLE);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
@@ -293,7 +296,7 @@ public class TaskbarDragController extends DragController<TaskbarActivityContext
|
||||
|
||||
private void maybeOnDragEnd() {
|
||||
if (!isDragging()) {
|
||||
((View) mDragObject.originalView).setAlpha(1);
|
||||
((View) mDragObject.originalView).setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user