Closed
Bug 887020
Opened 11 years ago
Closed 11 years ago
Cleanup BrowserToolbar
Categories
(Firefox for Android Graveyard :: Theme and Visual Design, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: sriram, Assigned: sriram)
References
Details
Attachments
(1 file)
38.47 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Currently there are just 2 browser_toolbar.xml's. They are <include> in gecko_app.xml and the views are found in BrowserToolbar.from(). Also, we don't re-inflate BrowserToolbar anymore. We can make BrowserToolbar the layout instead of it having an mLayout internally. (Oh! We had this in October 2011).
Assignee | ||
Comment 1•11 years ago
|
||
First pass of BrowserToolbar cleanup. This removes BrowserToolbarLayout and moved the code to BrowserToolbar. BrowserToolbar is created directly by inflating from XML. Hence it's findViewById() happen automagically and it doesnt need a mLayout anymore. I'm still looking into moving findViewById()'s to onAttachedToWindow() as I've moved the listeners. I just want to find a remote case where we get a message from Gecko and we haven't initialized mBack yet, that could cause an NPE. If I'm sure that we won't run into that, I'll post a patch to move the findViewById() to onAttachedToWindow(). Until then this patch works fine (and just the same as what's there now).
Attachment #767480 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 2•11 years ago
|
||
Thinking aloud: The app takes ~700ms to display. The time between inflation and attaching to window is very very less, that our Gecko wouldn't be ready to give messages. It's safe to move all the findViewByIds() to onAttachedToWindow(). I'll move them.
Comment 3•11 years ago
|
||
(In reply to Sriram Ramasubramanian [:sriram] from comment #2) > Thinking aloud: > The app takes ~700ms to display. The time between inflation and attaching to > window is very very less, that our Gecko wouldn't be ready to give messages. > It's safe to move all the findViewByIds() to onAttachedToWindow(). I'll move > them. Don't count on Gecko always loading slowly.
Updated•11 years ago
|
Attachment #767480 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Trying: https://tbpl.mozilla.org/?tree=Try&rev=2343831665a8
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc5850cf4042
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/cc5850cf4042
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Updated•3 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
•