Clear the Glide cache in response to a wider range of warnings.

This commit is contained in:
akwizgran
2021-03-11 14:54:03 +00:00
parent 74a3f54d28
commit de2c9670d5
2 changed files with 42 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import android.annotation.SuppressLint;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.os.Build;
import android.os.Looper;
import android.provider.Settings;
import org.briarproject.bramble.api.Pair;
@@ -134,4 +135,8 @@ public class AndroidUtils {
return null;
}
}
public static boolean isUiThread() {
return Looper.myLooper() == Looper.getMainLooper();
}
}