Skip to content

Commit 8c300a5

Browse files
committed
ANDROID: remove hardcoded references to /sdcard path
1 parent 5bd5b0e commit 8c300a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/platform/android/app/src/main/java/net/sourceforge/smallbasic/MainActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,6 @@ private String getExternalStorage() {
710710
}
711711

712712
private String getInternalStorage() {
713-
Log.d(TAG, "internal = " + getFilesDir().getAbsolutePath());
714713
return getFilesDir().getAbsolutePath();
715714
}
716715

@@ -901,10 +900,10 @@ private void sendResponse(Socket socket, String content) throws IOException {
901900
}
902901

903902
private void setupStorageEnvironment(boolean external) {
903+
setenv("INTERNAL_DIR", getInternalStorage());
904904
if (external) {
905905
setenv("EXTERNAL_DIR", getExternalStorage());
906906
}
907-
setenv("INTERNAL_DIR", getInternalStorage());
908907
}
909908

910909
private void startServer(final int socketNum, final String token) {

0 commit comments

Comments
 (0)