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

Commit 99d2b482 authored by Priyanka Advani's avatar Priyanka Advani Committed by Android (Google) Code Review
Browse files

Revert "Update isLauncherInitialized check to wait until Launcher has stopped binding items"

This reverts commit 7ab2c874.

Reason for revert: Likely culprit for b/311366267

Change-Id: I52a2c7527a90698866aef44217230ef7ae5064ee
parent 7ab2c874
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@
 */
package com.android.launcher3.testing;

import static com.android.launcher3.Flags.enableGridOnlyOverview;
import static com.android.launcher3.allapps.AllAppsStore.DEFER_UPDATES_TEST;
import static com.android.launcher3.Flags.enableGridOnlyOverview;
import static com.android.launcher3.config.FeatureFlags.FOLDABLE_SINGLE_PAGE;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;

@@ -288,10 +288,8 @@ public class TestInformationHandler implements ResourceBasedOverride {
    }

    protected boolean isLauncherInitialized() {
        Launcher launcher = Launcher.ACTIVITY_TRACKER.getCreatedActivity();
        return launcher == null
                || (LauncherAppState.getInstance(mContext).getModel().isModelLoaded()
                && !launcher.isBindingItems());
        return Launcher.ACTIVITY_TRACKER.getCreatedActivity() == null
                || LauncherAppState.getInstance(mContext).getModel().isModelLoaded();
    }

    protected Activity getCurrentActivity() {