Android11: file exists but can't be read, fallback to online

pull/317/head
Georg Lukas 2021-10-14 09:36:13 +02:00
rodzic 857a256536
commit e8ff687194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -116,7 +116,7 @@ class MapAct extends MapActivity with MapMenuHelper {
def reloadMapAndTheme() {
val mapfile = new File(prefs.getString("mapfile", android.os.Environment.getExternalStorageDirectory() + "/aprsdroid.map"))
if (mapfile.exists())
if (mapfile.exists() && mapfile.canRead())
mapview.setMapFile(mapfile)
else {
if (prefs.getString("mapfile", null) != null)