(@NonNull Runnable r)
| 16 | private static Handler sHandler; |
| 17 | |
| 18 | public static void runOnUiThread(@NonNull Runnable r) { |
| 19 | if (Looper.myLooper() == Looper.getMainLooper()) { |
| 20 | r.run(); |
| 21 | } else { |
| 22 | post(r); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | @SuppressLint("LambdaLast") |
| 27 | public static void postDelayed(@NonNull Runnable r, long ms) { |