[automerger] Fix bug where widgets are inflated in the wrong orientation. am: 6bed350b75

Change-Id: I9d4bdaba96fe6afc90a48a141cd3af640b592a7a
This commit is contained in:
Jonathan Miranda
2017-09-19 21:43:36 +00:00
6 changed files with 15 additions and 7 deletions

View File

@@ -1067,7 +1067,7 @@ public class Workspace extends PagedView
&& v.getTag() instanceof LauncherAppWidgetInfo) {
LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) v.getTag();
LauncherAppWidgetHostView lahv = (LauncherAppWidgetHostView) v;
if (lahv.isReinflateRequired()) {
if (lahv.isReinflateRequired(mLauncher.getOrientation())) {
// Remove and rebind the current widget (which was inflated in the wrong
// orientation), but don't delete it from the database
mLauncher.removeItem(lahv, info, false /* deleteFromDb */);