Closed Bug 948001 Opened 12 years ago Closed 12 years ago

[Settings] With APZ turned on the wifi panel is sometimes shown instead of the main panel at startup

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3+, b2g-v1.3 fixed)

RESOLVED FIXED
blocking-b2g 1.3+
Tracking Status
b2g-v1.3 --- fixed

People

(Reporter: vingtetun, Assigned: vingtetun)

References

Details

Attachments

(1 file, 1 obsolete file)

Seems like there is a race here. The app starts with a viewport of 968px and then is resize to device-width. But this is too late since the rotate callback has already fired and start to load the wifi panel.
Comment on attachment 8344757 [details] [diff] [review] Delay a bit the rotation listener Review of attachment 8344757 [details] [diff] [review]: ----------------------------------------------------------------- ::: apps/settings/js/settings.js @@ +800,4 @@ > console.log('go to default Panel ' + Settings.defaultPanelForTablet); > Settings.currentPanel = Settings.defaultPanelForTablet; > } > + We need to set ScreenLayout (calling to watch) before calling to Settings.isTabletAndLandscape() in which we get layout information from ScreenLayout.
Attachment #8344757 - Flags: review?(arthur.chen)
Attached patch bug909877.patchSplinter Review
Is it better ?
Attachment #8344757 - Attachment is obsolete: true
Attachment #8345235 - Flags: review?(arthur.chen)
Comment on attachment 8345235 [details] [diff] [review] bug909877.patch r=me. Thanks!
Attachment #8345235 - Flags: review?(arthur.chen) → review+
Status: NEW → RESOLVED
blocking-b2g: --- → 1.3+
Closed: 12 years ago
Resolution: --- → FIXED
Assignee: nobody → 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: