mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
[automerger] Fix bug where widgets are inflated in the wrong orientation. am: 6bed350b75
Change-Id: I9d4bdaba96fe6afc90a48a141cd3af640b592a7a
This commit is contained in:
@@ -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 */);
|
||||
|
||||
Reference in New Issue
Block a user