Closed Bug 1510660 Opened 6 years ago Closed 1 year ago

Lint Warning: Use apply() on SharedPreferences

Categories

(GeckoView :: General, task, P5)

Unspecified
Android
task

Tracking

(firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: fluffyemily, Assigned: Logan)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=java])

Attachments

(1 file)

Consider using apply() instead of commit on shared preferences. Whereas commit blocks and writes its data to persistent storage immediately, apply will handle it in the background. Affected Classes: GeckoAppShell GeckoProfile. Initial look at these suggests that we are calling `commit` as we desire synchronous writes and so here we probably just want to suppress the warnings.
Keywords: good-first-bug
OS: Unspecified → Android
Priority: -- → P5
Product: Firefox for Android → GeckoView

I would like to take up this issue. Is that alright?

Flags: needinfo?(cpeterson)

Hi EvaNanyonga, absolutely!

If you need to get up and running with GeckoView you can refer to our getting started guide here: https://mozilla.github.io/geckoview/tutorials/geckoview-quick-start.html

You can run the lint using ./mach android lint after you set up the workspace using the guide linked above.

Feel free to ask any questions here on the bug or on IRC at #mobile.

Assignee: nobody → evewish
Flags: needinfo?(cpeterson)

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: evewish → nobody
Severity: normal → S3

Enhancements should have severity N/A.

Severity: S3 → N/A
Whiteboard: [lang=java]
Assignee: nobody → loganrosen
Status: NEW → ASSIGNED

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: loganrosen → nobody
Status: ASSIGNED → NEW
Assignee: nobody → loganrosen
Status: NEW → ASSIGNED
Type: enhancement → task
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/ac40edb9fde1 suppress lint warning for SharedPreferences.apply() r=geckoview-reviewers,owlish DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: