Removing access to LauncherModel.getCallbacks

Bug: 137568159
Change-Id: Ic074dec6a8981a4b9aabf028cf3b878b532abb11
This commit is contained in:
Sunny Goyal
2019-10-02 14:27:40 -07:00
parent a0db584e08
commit b0adac23e0
4 changed files with 9 additions and 19 deletions
@@ -29,7 +29,6 @@ import com.android.launcher3.DeviceProfile;
import com.android.launcher3.InvariantDeviceProfile;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherAppState;
import com.android.launcher3.LauncherModel;
import com.android.launcher3.LauncherState;
import com.android.launcher3.R;
import com.android.launcher3.allapps.AllAppsStore;
@@ -170,7 +169,7 @@ public class TestInformationHandler implements ResourceBasedOverride {
}
protected boolean isLauncherInitialized() {
final LauncherModel model = LauncherAppState.getInstance(mContext).getModel();
return model.getCallback() == null || model.isModelLoaded();
return Launcher.ACTIVITY_TRACKER.getCreatedActivity() == null
|| LauncherAppState.getInstance(mContext).getModel().isModelLoaded();
}
}