Version: 90f9c2d (current master)
Android: 12 (Samsung Galaxy S10+, OneUI 4.1)
Expected Behaviour:
Enabling Scoped Storage in Settings enables Scoped Storage support.
Observed Behaviour:
It doesn't.
Reason and Fix:
|
sp.edit().putBoolean("UseScopedStorage", (boolean) newValue).apply(); |
sets a property named
UseScopedStorage, but
|
final boolean choice = sp.getBoolean("AllowNewScopedStorage", false); |
queries for a property called
AllowNewScopedStorage (which is never used anywhere else) and thus always returns false.
Fix: Replace
AllowNewScopedStorage in Util.java with
UseScopedStorage.
@Xavron pinging you since you seem to have (inofficially) taken over the project lead.
Version: 90f9c2d (current master)
Android: 12 (Samsung Galaxy S10+, OneUI 4.1)
Expected Behaviour:
Enabling Scoped Storage in Settings enables Scoped Storage support.
Observed Behaviour:
It doesn't.
Reason and Fix:
swiftp/app/src/main/java/be/ppareit/swiftp/gui/PreferenceFragment.java
Line 248 in 90f9c2d
UseScopedStorage, butswiftp/app/src/main/java/be/ppareit/swiftp/Util.java
Line 122 in 90f9c2d
AllowNewScopedStorage(which is never used anywhere else) and thus always returns false.Fix: Replace
AllowNewScopedStoragein Util.java withUseScopedStorage.@Xavron pinging you since you seem to have (inofficially) taken over the project lead.