Skip to content

Commit 924393c

Browse files
committed
Fix storage location not being set on Android <= 5
Regression in 1.6.0. Fixes #70
1 parent 11705a8 commit 924393c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/cuberite/android/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private void checkPermissions() {
137137
if (location.isEmpty() || location.startsWith(PUBLIC_DIR)) {
138138
showPermissionPopup();
139139
}
140-
} else if (location.startsWith(PRIVATE_DIR)) {
140+
} else if (location.isEmpty() || location.startsWith(PRIVATE_DIR)) {
141141
SharedPreferences.Editor editor = preferences.edit();
142142
editor.putString("cuberiteLocation", PUBLIC_DIR + "/cuberite-server");
143143
editor.apply();

0 commit comments

Comments
 (0)