Closed
Bug 919230
Opened 11 years ago
Closed 11 years ago
Implement empty screen state for bookmarks
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(firefox26 wontfix, firefox27 verified, fennec+)
VERIFIED
FIXED
Firefox 27
People
(Reporter: aaronmt, Assigned: liuche)
References
Details
Attachments
(2 files, 4 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
sriram
:
review+
|
Details | Diff | Splinter Review |
bugs 891953, bug 895866, bug 895867, bug 904689 implemented empty screen states for each tab. Currently, there is none for bookmarks. For consistency should this be implemented? See screenshot. Ian?
Flags: needinfo?(ibarlow)
Reporter | ||
Updated•11 years ago
|
Blocks: new-about-home
Comment 1•11 years ago
|
||
Yeah, on the off chance that someone deletes all their bookmarks, we should show something.
Mockup: http://cl.ly/image/2u2l3M191d27
Star assets: http://cl.ly/1e2j151u2j0H
Flags: needinfo?(ibarlow)
Assignee | ||
Comment 3•11 years ago
|
||
Sounds good - this makes me think we should also remove the empty pages for "Most Visited" now that it has the grid view and will never be completely empty.
Comment 4•11 years ago
|
||
Yeah, that's a good point too.
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Chenxia Liu [:liuche] from comment #3)
> Sounds good - this makes me think we should also remove the empty pages for
> "Most Visited" now that it has the grid view and will never be completely
> empty.
Oh does that invalidate a bug I filed over the weekend? bug 919227
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → liuche
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #809294 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #809453 -
Flags: review?(sriram)
Assignee | ||
Updated•11 years ago
|
Attachment #809454 -
Flags: review?(sriram)
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 809454 [details] [diff] [review]
Bookmarks empty screen v1
This patch uses the same layout as the history empty screens, but because it's right next to the reading list screen, the spacing being a little off is very obvious.
Based on the comments from bug 907852, it seems like I should use a Relative/FrameLayout for the Reading List empty screen, so that the spacers used to align the big empty icons will work the same way. The problem is with small screens/landscape - any suggestions on what to do with that, so that the reading list tip doesn't overlap the text + icon?
Attachment #809454 -
Flags: review?(sriram) → feedback?(sriram)
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 809453 [details] [diff] [review]
Part 1: Remove empty screens for Top Sites v2
Sorry, I forgot that I had filed bug 919704 for this, so moving this patch over to there.
Attachment #809453 -
Attachment is obsolete: true
Attachment #809453 -
Flags: review?(sriram)
Assignee | ||
Updated•11 years ago
|
Attachment #809454 -
Attachment description: Part 2: Bookmarks empty screen v1 → Bookmarks empty screen v1
Updated•11 years ago
|
tracking-fennec: ? → +
Comment 11•11 years ago
|
||
Comment on attachment 809454 [details] [diff] [review]
Bookmarks empty screen v1
Review of attachment 809454 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/home/BookmarksPage.java
@@ +158,5 @@
> +
> + final TextView emptyText = (TextView) mEmptyView.findViewById(R.id.home_empty_text);
> + emptyText.setText(R.string.home_bookmarks_empty);
> +
> + mList.setEmptyView(mEmptyView);
I guess the initialization of mEmptyView should be immaterial of cursor. So the check should be inside the outer check on cursor.
if (cursor is empty) {
if (emptyView is null) {
// initialize empty view.
}
list.setEmptyView(emptyView);
}
Attachment #809454 -
Flags: feedback?(sriram) → feedback+
Assignee | ||
Comment 12•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #809454 -
Attachment is obsolete: true
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 817557 [details] [diff] [review]
Implement empty screen state for bookmarks.
Unbitrotting. I'd like to get this landed and then address the difference in alignment in a follow-up, actually.
re comment #11: We only want to set the empty view when it's null (and hasn't been set before), so setEmptyView should actually be in the same block as the empty view initialization.
Attachment #817557 -
Flags: review?(sriram)
Comment 14•11 years ago
|
||
Comment on attachment 817557 [details] [diff] [review]
Implement empty screen state for bookmarks.
Review of attachment 817557 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/home/BookmarksPage.java
@@ +152,5 @@
> + mList.setEmptyView(mEmptyView);
> + }
> + }
> +
> +
Remove one of the two lines. The choice is yours ;)
Attachment #817557 -
Flags: review?(sriram) → review+
Assignee | ||
Comment 15•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Firefox 27
Comment 16•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 17•11 years ago
|
||
26?
Assignee | ||
Comment 18•11 years ago
|
||
This has new strings, so we can't uplift to Aurora.
Assignee | ||
Comment 19•11 years ago
|
||
Updated•11 years ago
|
Attachment #819276 -
Flags: review+
Assignee | ||
Comment 20•11 years ago
|
||
Comment on attachment 819276 [details] [diff] [review]
Remove empty screen for Top Sites.
Wrong bug.
Attachment #819276 -
Attachment is obsolete: true
Reporter | ||
Updated•11 years ago
|
Updated•4 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
•