diff options
-rw-r--r-- | src/com/android/launcher3/BuildInfo.java | 9 | ||||
-rw-r--r-- | src/com/android/launcher3/LauncherAppState.java | 5 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/com/android/launcher3/BuildInfo.java b/src/com/android/launcher3/BuildInfo.java deleted file mode 100644 index 1392d7a43..000000000 --- a/src/com/android/launcher3/BuildInfo.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.android.launcher3; - -// TODO: Remove this class once all its references are gone. -public class BuildInfo { - - public boolean isDogfoodBuild() { - return false; - } -} diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index ad959ef8c..b70c3aa47 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -27,6 +27,7 @@ import com.android.launcher3.accessibility.LauncherAccessibilityDelegate; import com.android.launcher3.compat.LauncherAppsCompat; import com.android.launcher3.compat.PackageInstallerCompat; import com.android.launcher3.compat.UserManagerCompat; +import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.util.ConfigMonitor; import com.android.launcher3.util.TestingUtils; import com.android.launcher3.util.Thunk; @@ -173,4 +174,8 @@ public class LauncherAppState { public InvariantDeviceProfile getInvariantDeviceProfile() { return mInvariantDeviceProfile; } + + public static boolean isDogfoodBuild() { + return FeatureFlags.IS_ALPHA_BUILD || FeatureFlags.IS_DEV_BUILD; + } } |