Fixing regression in removing widgets via accessibility.

- Regression was introduced in ag/765323, but not visible in normal 
  drag and drop because the view is already removed from the parent.
  However, when accessibility is enabled, it was only removing it from
  the db, but not from the parents.

Change-Id: I37483d0cd6306d270441b11e6f05247d58b88521
This commit is contained in:
Winson authored and Winson Chung committed 2015-10-02 18:44:18 +00:00
1 parent 935eedad97
commit 44818e07af
1 file changed
+1
+1
View File
@@ -2447,6 +2447,7 @@ public class Launcher extends Activity
} else if (itemInfo instanceof LauncherAppWidgetInfo) {
final LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) itemInfo;
unbindAppWidget(widgetInfo, deleteFromDb);
mWorkspace.removeWorkspaceItem(v);
if (deleteFromDb) {
LauncherModel.deleteItemFromDatabase(this, widgetInfo);
}