public static boolean isInMainThread() {
      return Looper.myLooper() == Looper.getMainLooper();
}

  

相关文章: