mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Rename flag IS_DOGFOOD to IS_STUDIO.
The flag is only set when building from Android Studio... and is never used for dogfood. Test: local Change-Id: I898d585f4558c2437f0152ef102bea59c351f80b
This commit is contained in:
@@ -130,7 +130,7 @@ public class MultiStateCallback {
|
||||
final LinkedList<Runnable> callbacks;
|
||||
if (mCallbacks.indexOfKey(stateMask) >= 0) {
|
||||
callbacks = mCallbacks.get(stateMask);
|
||||
if (FeatureFlags.IS_DOGFOOD_BUILD && callbacks.contains(callback)) {
|
||||
if (FeatureFlags.IS_STUDIO_BUILD && callbacks.contains(callback)) {
|
||||
throw new IllegalStateException("Existing callback for state found");
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -55,7 +55,7 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
// Notify if recents animation is still running
|
||||
if (mController != null) {
|
||||
String msg = "New recents animation started before old animation completed";
|
||||
if (FeatureFlags.IS_DOGFOOD_BUILD) {
|
||||
if (FeatureFlags.IS_STUDIO_BUILD) {
|
||||
throw new IllegalArgumentException(msg);
|
||||
} else {
|
||||
Log.e("TaskAnimationManager", msg, new Exception());
|
||||
|
||||
@@ -31,7 +31,7 @@ public class BinderTracker {
|
||||
private static final String TAG = "BinderTracker";
|
||||
|
||||
public static void start() {
|
||||
if (!FeatureFlags.IS_DOGFOOD_BUILD) {
|
||||
if (!FeatureFlags.IS_STUDIO_BUILD) {
|
||||
Log.wtf(TAG, "Accessing tracker in released code.", new Exception());
|
||||
return;
|
||||
}
|
||||
@@ -40,7 +40,7 @@ public class BinderTracker {
|
||||
}
|
||||
|
||||
public static void stop() {
|
||||
if (!FeatureFlags.IS_DOGFOOD_BUILD) {
|
||||
if (!FeatureFlags.IS_STUDIO_BUILD) {
|
||||
Log.wtf(TAG, "Accessing tracker in released code.", new Exception());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user