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

Commit e241f6c2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevent all apps prediction update while visible" into ub-launcher3-rvc-dev

parents 63cbfc61 6793dae6
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -211,8 +211,11 @@ public class PredictionUiStateManager implements StateListener<LauncherState>,
    }

    private void dispatchOnChange(boolean changed) {
        PredictionState newState = changed ? parseLastState() :
                (mPendingState == null ? mCurrentState : mPendingState);
        PredictionState newState = changed
                ? parseLastState()
                : mPendingState != null && canApplyPredictions(mPendingState)
                        ? mPendingState
                        : mCurrentState;
        if (changed && mAppsView != null && !canApplyPredictions(newState)) {
            scheduleApplyPredictedApps(newState);
        } else {