Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

Change Android Preference PlatformRemove and PlatformClear to be asynchronous #636

@csdinon

Description

@csdinon

Description

The implementation of Preferences for Android uses SharedPreferences.Editor.Commit for PlatformRemove and PlatformClear when editing. The docs only suggest using this if you're using the return value. I'm suggesting we use Apply to be consistent with PlatformSet and take unwanted disk writes off the main thread.
https://developer.android.com/reference/android/content/SharedPreferences.Editor#commit()

Expected Behavior

Asynchronous disk writes when removing and clearing SharedPreferences.

Basic Information

https://developer.android.com/reference/android/content/SharedPreferences.Editor#commit()

VS bug #744070

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions