From 3bbbabc54ac73a4451b0a862a3faac6426b1b7b4 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 15 Mar 2016 09:16:30 -0700 Subject: Fixing model being updated on UI thread > When package gets unavailable or suspended, the disabled flag was getting updated on the UI thread. This could lead to inconsistent model if launcher activity didn't exist. > Fixing: When unsuspending one work profile apps, all work profile apps get unsuspended Bug: 27673573,27673373,27403236 Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08 --- src/com/android/launcher3/dragndrop/DragController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/launcher3/dragndrop/DragController.java') diff --git a/src/com/android/launcher3/dragndrop/DragController.java b/src/com/android/launcher3/dragndrop/DragController.java index 80f9e4665..7524128d4 100644 --- a/src/com/android/launcher3/dragndrop/DragController.java +++ b/src/com/android/launcher3/dragndrop/DragController.java @@ -314,7 +314,7 @@ public class DragController implements DragDriver.EventListener { endDrag(); } - public void onAppsRemoved(final ArrayList packageNames, HashSet cns) { + public void onAppsRemoved(final HashSet packageNames, HashSet cns) { // Cancel the current drag if we are removing an app that we are dragging if (mDragObject != null) { Object rawDragInfo = mDragObject.dragInfo; -- cgit v1.2.3