Closed
Bug 744987
Opened 12 years ago
Closed 12 years ago
Avoid initialize message in GeckoApp
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sriram, Assigned: sriram)
Details
Attachments
(1 file)
5.23 KB,
patch
|
mfinkle
:
review+
blassey
:
review+
|
Details | Diff | Splinter Review |
When the first optimizations in startup landed, the idea was to delay initializing until we show the UI. Later another optimization landed which showed the ActionBar in XML and the textured background as a part of WindowBackground -- thereby UI is shown way faster than onCreate() actually does setContentView(). This removes the necessity for sending a delayed message for the UI thread in onResume(). Also, it is highly recommended to have the initial UI setup in onWindowFocusChanged(). This is exactly where the activity becomes visible to the user.
Assignee | ||
Comment 1•12 years ago
|
||
Blogs about using onWindowFocusChanged(): http://damianflannery.wordpress.com/2011/06/08/start-animation-in-oncreate-or-onresume-on-android/ http://researcharea.blogspot.com/2011/03/onwindowfocuschanged-method-in-android.html
Assignee: nobody → sriram
Assignee | ||
Comment 2•12 years ago
|
||
This patch reverts back GeckoAppHandler to default Handler, moves the initialize from onResume() to onWindowFocusChanged().
Attachment #614591 -
Flags: review?(mark.finkle)
Comment 3•12 years ago
|
||
Comment on attachment 614591 [details] [diff] [review] Patch Looks like a good backout of the GeckoHandler and message code. The docs for onWindowFocusChanged seem to suggest it is a good spot to init the UI and you are calling the super method. Also want Brad's review for the cleanup to make sure this is what he had in mind.
Attachment #614591 -
Flags: review?(mark.finkle)
Attachment #614591 -
Flags: review?(blassey.bugs)
Attachment #614591 -
Flags: review+
Updated•12 years ago
|
Attachment #614591 -
Flags: review?(blassey.bugs) → review+
Assignee | ||
Comment 4•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/9f703a3559c8
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9f703a3559c8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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
•