Closed
Bug 1328684
Opened 7 years ago
Closed 7 years ago
Convert SharedPreferencesHelper events to bundle events
Categories
(GeckoView :: General, defect)
Tracking
(firefox53 fixed)
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: jchen, Assigned: jchen)
References
Details
Attachments
(1 file)
18.63 KB,
patch
|
sebastian
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•7 years ago
|
||
Convert events used in SharedPreferencesHelper to GeckoBundle/BundleEventListener events. Gecko thread events are used because the listeners are expected to be synchronous, especially for the SharedPreferences:Get event, which also requires a synchronous callback.
Attachment #8823790 -
Flags: review?(s.kaspari)
Comment 2•7 years ago
|
||
Comment on attachment 8823790 [details] [diff] [review] Convert SharedPreferencesHelper events to bundle events (v1) Review of attachment 8823790 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/java/org/mozilla/gecko/SharedPreferencesHelper.java @@ +147,2 @@ > } > + editor.apply(); Woops, nice catch - .. to apply the changes only once. @@ +211,5 @@ > + try { > + msg.putBoolean("value", sharedPreferences.getBoolean(key, false)); > + return; > + } catch (final ClassCastException e) { > + } Not nice, but it seems like it's our only option.
Attachment #8823790 -
Flags: review?(s.kaspari) → review+
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4d1775e57bcc Convert SharedPreferencesHelper events to bundle events; r=sebastian
Comment 4•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4d1775e57bcc
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Updated•5 years ago
|
Product: Firefox for Android → GeckoView
Updated•5 years ago
|
Target Milestone: Firefox 53 → mozilla53
You need to log in
before you can comment on or make changes to this bug.
Description
•