Changing the dogfood check to a static boolean to better handle proguard optimizations
Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
This commit is contained in:
1 parent
14031ebb81
commit
6c56c68555
13 files changed
+29
-49
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user