Skip to content

Commit

Permalink
Fix storage location not being set on Android <= 5
Browse files Browse the repository at this point in the history
Regression in 1.6.0.

Fixes #70
  • Loading branch information
mathiascode committed Feb 1, 2024
1 parent 11705a8 commit 924393c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/cuberite/android/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void checkPermissions() {
if (location.isEmpty() || location.startsWith(PUBLIC_DIR)) {
showPermissionPopup();
}
} else if (location.startsWith(PRIVATE_DIR)) {
} else if (location.isEmpty() || location.startsWith(PRIVATE_DIR)) {
SharedPreferences.Editor editor = preferences.edit();
editor.putString("cuberiteLocation", PUBLIC_DIR + "/cuberite-server");
editor.apply();
Expand Down

0 comments on commit 924393c

Please sign in to comment.