new DebugUtils method

This commit is contained in:
Eric House 2018-12-09 17:11:38 -08:00
parent c5c081e8bd
commit a2fa841947

View file

@ -101,7 +101,12 @@ public class DbgUtils {
public static void assertOnUIThread() public static void assertOnUIThread()
{ {
Assert.assertTrue( Utils.isOnUIThread() ); assertOnUIThread( true );
}
public static void assertOnUIThread( boolean isOnThread )
{
Assert.assertTrue( isOnThread == Utils.isOnUIThread() );
} }
public static void printStack( String tag, StackTraceElement[] trace ) public static void printStack( String tag, StackTraceElement[] trace )