// Path: android/Commons/src/triaina/commons/exception/CalledFromWrongThreadRuntimeException.java
// public class CalledFromWrongThreadRuntimeException extends CommonRuntimeException {
// 	private static final long serialVersionUID = -7769875177893783855L;
// 
// 	
// 	public CalledFromWrongThreadRuntimeException() {
// 		super();
// 	}
// 
// 	public CalledFromWrongThreadRuntimeException(String detailMessage,
// 			Throwable throwable) {
// 		super(detailMessage, throwable);
// 	}
// 
// 	public CalledFromWrongThreadRuntimeException(String detailMessage) {
// 		super(detailMessage);
// 	}
// 
// 	public CalledFromWrongThreadRuntimeException(Throwable throwable) {
// 		super(throwable);
// 	}
// }


import triaina.commons.exception.CalledFromWrongThreadRuntimeException;
import android.os.Looper;
package triaina.commons.utils;


public final class ThreadUtils {
	private ThreadUtils() {}
	
	public static boolean isMainThread(Thread thread) {
		return Looper.getMainLooper().getThread() == thread;
	}
	
	public static boolean isMainThread() {
		return isMainThread(Thread.currentThread());
	}
	
	public static void checkMainThread(Thread thread) {
		if (!isMainThread(thread))
// Path: android/Commons/src/triaina/commons/exception/CalledFromWrongThreadRuntimeException.java
// public class CalledFromWrongThreadRuntimeException extends CommonRuntimeException {
// 	private static final long serialVersionUID = -7769875177893783855L;
// 
// 	
// 	public CalledFromWrongThreadRuntimeException() {
// 		super();
// 	}
// 
// 	public CalledFromWrongThreadRuntimeException(String detailMessage,
// 			Throwable throwable) {
// 		super(detailMessage, throwable);
// 	}
// 
// 	public CalledFromWrongThreadRuntimeException(String detailMessage) {
// 		super(detailMessage);
// 	}
// 
// 	public CalledFromWrongThreadRuntimeException(Throwable throwable) {
// 		super(throwable);
// 	}
// }


// Path: android/Commons/src/triaina/commons/utils/ThreadUtils.java
import triaina.commons.exception.CalledFromWrongThreadRuntimeException;
import android.os.Looper;

package triaina.commons.utils;


public final class ThreadUtils {
	private ThreadUtils() {}
	
	public static boolean isMainThread(Thread thread) {
		return Looper.getMainLooper().getThread() == thread;
	}
	
	public static boolean isMainThread() {
		return isMainThread(Thread.currentThread());
	}
	
	public static void checkMainThread(Thread thread) {
		if (!isMainThread(thread))
			throw new CalledFromWrongThreadRuntimeException("Don't touch without main thread!!"); 