update promise icon status
also fix a crash in LauncherModel.DEBUG_LOADERS Bug: 10778992 Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
This commit is contained in:
@@ -30,6 +30,8 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks {
|
||||
private static final String TAG = "LauncherAppState";
|
||||
private static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
|
||||
|
||||
private static final boolean DEBUG = true; // TODO STOPSHIP: set this to false
|
||||
|
||||
private final AppFilter mAppFilter;
|
||||
private final BuildInfo mBuildInfo;
|
||||
private LauncherModel mModel;
|
||||
@@ -249,4 +251,9 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks {
|
||||
public static boolean isDogfoodBuild() {
|
||||
return getInstance().mBuildInfo.isDogfoodBuild();
|
||||
}
|
||||
|
||||
public void setPackageState(String pkgName, int state) {
|
||||
if (DEBUG) Log.d(TAG, "setPackageState(" + pkgName + ", " + state + ")");
|
||||
mModel.setPackageState(pkgName, state);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user