Skip to content

Commit

Permalink
UIUtil.java added
Browse files Browse the repository at this point in the history
  • Loading branch information
umer0586 committed Nov 15, 2022
1 parent c16f81c commit 1f2e2f2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/src/main/java/github/umer0586/util/UIUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package github.umer0586.util;

import android.os.Handler;
import android.os.Looper;

public class UIUtil {

private static Handler handler = new Handler(Looper.getMainLooper());

public static void runOnUiThread(Runnable runnable)
{
handler.post(runnable);
}

}

0 comments on commit 1f2e2f2

Please sign in to comment.