Open Bug 1510660 Opened 6 years ago Updated 1 year ago

Lint Warning: Use apply() on SharedPreferences

Categories

(GeckoView :: General, enhancement, P5)

Unspecified
Android
enhancement

Tracking

(Not tracked)

ASSIGNED

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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: