public static boolean isOnBackgroundThread() {
        return !isOnMainThread();
    }
Returns {@code true} if called on the main thread, {@code false} otherwise.
core/src/main/java/com/bumptech/glide/util/Util.java