Closed Bug 744987 Opened 12 years ago Closed 12 years ago

Avoid initialize message in GeckoApp

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sriram, Assigned: sriram)

Details

Attachments

(1 file)

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.
Attached patch PatchSplinter Review
This patch reverts back GeckoAppHandler to default Handler, moves the initialize from onResume() to onWindowFocusChanged().
Attachment #614591 - Flags: review?(mark.finkle)
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+
Attachment #614591 - Flags: review?(blassey.bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/9f703a3559c8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: