Closed
Bug 974598
Opened 11 years ago
Closed 11 years ago
Handle full refreshes from locale changes immediately in HomeConfigInvalidator
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 30
People
(Reporter: lucasr, Assigned: lucasr)
References
Details
Attachments
(1 file, 1 obsolete file)
6.71 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
Right now, there's a visible delay between the locale change and the UI update.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 8379007 [details] [diff] [review]
Handle locale changes immediately in HomeConfigInvalidator (r=margaret)
Reduces the delay between the locale change and HomePager update.
Attachment #8379007 -
Flags: review?(margaret.leibovic)
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8379007 -
Attachment is obsolete: true
Attachment #8379007 -
Flags: review?(margaret.leibovic)
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8379168 [details] [diff] [review]
Handle locale changes immediately in HomeConfigInvalidator (r=margaret)
This updated patch is a complement to the new one in bug 972306. It separates UPDATE from REFRESH (which now mean different things) and runs refreshes triggered by locale changes immediately.
Attachment #8379168 -
Flags: review?(margaret.leibovic)
Comment 5•11 years ago
|
||
Comment on attachment 8379168 [details] [diff] [review]
Handle locale changes immediately in HomeConfigInvalidator (r=margaret)
Review of attachment 8379168 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
::: mobile/android/base/home/HomeConfigInvalidator.java
@@ -85,5 @@
> @Override
> public void run() {
> final String configLocale = mHomeConfig.getLocale();
> if (!TextUtils.equals(configLocale, locale)) {
> - handlePanelUpdate(null);
I like getting rid of this null parameter usage.
@@ +245,5 @@
> break;
> }
> +
> + case REFRESH: {
> + shouldRefresh = true;
Nice, I like how this is more explicit now.
Attachment #8379168 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•