Skip to content

Commit 1f2e2f2

Browse files
committed
UIUtil.java added
1 parent c16f81c commit 1f2e2f2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package github.umer0586.util;
2+
3+
import android.os.Handler;
4+
import android.os.Looper;
5+
6+
public class UIUtil {
7+
8+
private static Handler handler = new Handler(Looper.getMainLooper());
9+
10+
public static void runOnUiThread(Runnable runnable)
11+
{
12+
handler.post(runnable);
13+
}
14+
15+
}

0 commit comments

Comments
 (0)