Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2727434c authored by Schneider Victor-tulias's avatar Schneider Victor-tulias Committed by Android (Google) Code Review
Browse files

Merge "Fix hotseat and prediction row to allow updates when empty." into ub-launcher3-master

parents 59f532fe 1b9e199b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ public class PredictionRowView extends LinearLayout implements
     * we can optimize by swapping them in place.
     */
    public void setPredictedApps(List<ItemInfo> items) {
        if (isShown() && getWindowVisibility() == View.VISIBLE) {
        if (!mLauncher.isWorkspaceLoading() && isShown() && getWindowVisibility() == View.VISIBLE) {
            mPendingPredictedItems = items;
            return;
        }
+3 −1
Original line number Diff line number Diff line
@@ -251,7 +251,9 @@ public class HotseatPredictionController implements DragController.DragListener,
     * Sets or updates the predicted items
     */
    public void setPredictedItems(FixedContainerItems items) {
        if (mHotseat.isShown() && mHotseat.getWindowVisibility() == View.VISIBLE) {
        if (!mLauncher.isWorkspaceLoading()
                && mHotseat.isShown()
                && mHotseat.getWindowVisibility() == View.VISIBLE) {
            mHotseat.setOnVisibilityAggregatedCallback((isVisible) -> {
                if (isVisible) {
                    return;