Skip to content

Commit 65105b2

Browse files
committed
ANDROID: remove requestLegacyExternalStorage
1 parent 00b32c9 commit 65105b2

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

src/platform/android/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ apply plugin: 'com.android.application'
22

33
android {
44
// app can use the API features included in this API level and lower.
5-
compileSdkVersion 29
5+
compileSdkVersion 30
66

77
// can override some attributes in main/AndroidManifest.xml
88
defaultConfig {
99
applicationId 'net.sourceforge.smallbasic'
1010
minSdkVersion 16
11-
targetSdkVersion 29
12-
versionCode 43
13-
versionName "12.21"
11+
targetSdkVersion 30
12+
versionCode 44
13+
versionName "12.22"
1414
resConfigs "en"
1515
}
1616

src/platform/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<application android:label="@string/app_name"
1010
android:hasCode="true"
1111
android:hardwareAccelerated="true"
12-
android:requestLegacyExternalStorage="true"
1312
android:usesCleartextTraffic="true"
1413
android:hasFragileUserData="true"
1514
android:icon="@drawable/ic_launcher">

src/platform/android/jni/runtime.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -536,15 +536,8 @@ void Runtime::loadConfig() {
536536
}
537537
s = settings.get(PATH_KEY);
538538
if (s) {
539-
const char *legacy = getenv("LEGACY_DIR");
540-
if (storage != nullptr && legacy != nullptr && strcmp(legacy, s->c_str()) == 0) {
541-
// don't restore the legacy folder
542-
trace("path = %s", storage);
543-
chdir(storage);
544-
} else {
545-
trace("path = %s", s->c_str());
546-
chdir(s->c_str());
547-
}
539+
trace("path = %s", s->c_str());
540+
chdir(s->c_str());
548541
}
549542
s = settings.get(MUTE_AUDIO_KEY);
550543
if (s && s->toInteger() == 1) {

0 commit comments

Comments
 (0)