Merge "Fix back button not showing in all floating views" into ub-launcher3-master

This commit is contained in:
Tony Wickham
2018-03-23 23:49:46 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -481,6 +481,8 @@ public class Folder extends AbstractFloatingView implements DragSource,
openFolder.close(true);
}
mIsOpen = true;
DragLayer dragLayer = mLauncher.getDragLayer();
// Just verify that the folder hasn't already been added to the DragLayer.
// There was a one-off crash where the folder had a parent already.
@@ -494,8 +496,6 @@ public class Folder extends AbstractFloatingView implements DragSource,
}
}
mIsOpen = true;
mContent.completePendingPageChanges();
if (!mDragInProgress) {
// Open on the first page.
@@ -288,8 +288,8 @@ public class OptionsPopupView extends AbstractFloatingView
lp.y = Utilities.boundToRange((int) (y - height / 2), insets.top + margin,
maxHeight - insets.bottom - height - margin);
launcher.getDragLayer().addView(view);
view.animateOpen();
launcher.getDragLayer().addView(view);
}
public static boolean onWidgetsClicked(Launcher launcher) {