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
2015-10-02 11:25:46 -07:00
committed by Winson Chung
parent 935eedad97
commit 44818e07af

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);
}