summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-07-16 14:09:05 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-07-16 14:09:53 -0700
commit6c56c68555dcb3d99b05d5faecd582a1f683cc92 (patch)
treea3583ab71b1e3f10d06c747c2f7436c981e1ee41 /src/com/android/launcher3/Utilities.java
parent14031ebb81e21d6de216d39194f5bf5ff6c784ea (diff)
downloadandroid_packages_apps_Trebuchet-6c56c68555dcb3d99b05d5faecd582a1f683cc92.tar.gz
android_packages_apps_Trebuchet-6c56c68555dcb3d99b05d5faecd582a1f683cc92.tar.bz2
android_packages_apps_Trebuchet-6c56c68555dcb3d99b05d5faecd582a1f683cc92.zip
Changing the dogfood check to a static boolean to better handle proguard optimizations
Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 8fd298df7..096edc546 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -56,6 +56,8 @@ import android.util.TypedValue;
import android.view.View;
import android.widget.Toast;
+import com.android.launcher3.config.ProviderConfig;
+
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
@@ -660,7 +662,7 @@ public final class Utilities {
}
public static void assertWorkerThread() {
- if (LauncherAppState.isDogfoodBuild() &&
+ if (ProviderConfig.IS_DOGFOOD_BUILD &&
(LauncherModel.sWorkerThread.getThreadId() != Process.myTid())) {
throw new IllegalStateException();
}