From 2c0cb156ac0f1283c26cf488d11efe861b6ba290 Mon Sep 17 00:00:00 2001 From: mkrupczak3 Date: Fri, 23 Aug 2024 17:08:26 -0400 Subject: [PATCH] fix #162 won't load DEM on first install --- app/src/main/java/com/openathena/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/openathena/MainActivity.java b/app/src/main/java/com/openathena/MainActivity.java index 43bd272..f5f4027 100644 --- a/app/src/main/java/com/openathena/MainActivity.java +++ b/app/src/main/java/com/openathena/MainActivity.java @@ -460,7 +460,7 @@ private void imageSelected(Uri uri) matchingDemURI = dce.fileUri; Log.d(TAG, "matchingDemURI is: " + matchingDemURI.getPath()); Log.d(TAG, "demUri is: " + ((demUri == null) ? "null" : demUri.getPath())); - if (!matchingDemURI.equals(demUri) && demUri != null) { + if (!matchingDemURI.equals(demUri) || demUri == null) { if (dce.contains(lat, lon)) { appendText(getString(R.string.main_activity_found_dem_in_cache_starting_load) + "\n"); demSelected(matchingDemURI);