Closed
Bug 889588
Opened 10 years ago
Closed 10 years ago
TopBookmarks is not shown at times
Categories
(Firefox for Android Graveyard :: Theme and Visual Design, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 889612
People
(Reporter: sriram, Assigned: sriram)
References
Details
Attachments
(1 file)
1.77 KB,
patch
|
Details | Diff | Splinter Review |
STR: 1. Open bookmarks page. 2. Switch off screen. 3. Rotate phone 4. Switch on screen. 5. Where are the top bookmarks?
Assignee | ||
Comment 1•10 years ago
|
||
The TopBookmarksView (GridView) is added as a header to the BookmarksListView (ListView). The GridView is not attached to the window until it is added by the ListView. This happens during the layout pass. The ListView attaches the GridView. Unfortunately, the cursor loader returns a cursor to the GridView much faster, and the GridView's adapter is not ready until it is attached to the window. Hence the GridView is empty, even though added by the ListView. This patch moves the adapter initialization to the constructor, so the GridView can receive the cursor. Note: Adapter can be moved out of the views, and be controlled by the fragment -- separate bug. Note 2: Adapter for ListView cannot be done in the cursor, as the header view has to be added before setting the adapter.
Attachment #770423 -
Flags: review?(bnicholson)
Comment 2•10 years ago
|
||
Comment on attachment 770423 [details] [diff] [review] Patch Review of attachment 770423 [details] [diff] [review]: ----------------------------------------------------------------- This change is being folded into bug 889612.
Attachment #770423 -
Flags: review?(bnicholson)
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•2 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
•