Closed Bug 888497 Opened 11 years ago Closed 11 years ago

Fix focus order of browser toolbar

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 25

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(1 file)

I hate how we have to manually update the focus order for this to work correctly -- it's a fragile implementation that can (and did) break whenever we change these views.
Attachment #769206 - Flags: review?(sriram)
Comment on attachment 769206 [details] [diff] [review] Fix focus order of browser toolbar Review of attachment 769206 [details] [diff] [review]: ----------------------------------------------------------------- r+ with those changes. ::: mobile/android/base/BrowserToolbar.java @@ +450,5 @@ > + mFocusOrder = Arrays.asList(mTabs, mBack, mForward, mLayout, > + mSiteSecurity, mReader, mStop, mActionItemBar, mMenu); > + } else { > + mFocusOrder = Arrays.asList(mLayout, mSiteSecurity, mReader, mStop, > + mMenu, mTabs); I think the order should be "mTabs, mMenu". @@ +882,4 @@ > private void updateFocusOrder() { > View prevView = null; > > + boolean needsNewFocus = false; Please add a comment on what this boolean is tracking.
Attachment #769206 - Flags: review?(sriram) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Unfortunately, this fix introduces a crash. Please refer to bug 889094 for details.
Flags: needinfo?(bnicholson)
Flags: needinfo?(bnicholson)
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: