Removing junit.framework.Assert
Bug: 22124692 Change-Id: Ie9c920ec6ef9631392a70b9ab2a5659ba23385b3
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user