diff options
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 0d13c6990..19334ed31 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -56,8 +56,6 @@ import android.util.TypedValue; import android.view.View; import android.widget.Toast; -import junit.framework.Assert; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; @@ -665,8 +663,9 @@ public final class Utilities { } public static void assertWorkerThread() { - if (LauncherAppState.isDogfoodBuild()) { - Assert.assertTrue(LauncherModel.sWorkerThread.getThreadId() == Process.myTid()); + if (LauncherAppState.isDogfoodBuild() && + (LauncherModel.sWorkerThread.getThreadId() != Process.myTid())) { + throw new IllegalStateException(); } } |