Skip to content

[BUG] Unable to enable ScopeStorage #260

@Thalhammer

Description

@Thalhammer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions