Removing access to LauncherModel.getCallbacks
Bug: 137568159 Change-Id: Ic074dec6a8981a4b9aabf028cf3b878b532abb11
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user