Closed
Bug 903160
Opened 12 years ago
Closed 12 years ago
Follow-up: Use ViewStub in home_list_with_title.xml for lazy inflation
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: liuche, Assigned: liuche)
References
Details
(Whiteboard: fixed-fig)
Attachments
(1 file)
|
7.70 KB,
patch
|
sriram
:
review+
|
Details | Diff | Splinter Review |
Since the empty view in home_list_with_title.xml is not set on creation, use a ViewStub to do lazy inflation.
http://developer.android.com/reference/android/view/ViewStub.html
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #788427 -
Flags: review?(sriram)
Comment 2•12 years ago
|
||
Comment on attachment 788427 [details] [diff] [review]
Patch: viewstub
Review of attachment 788427 [details] [diff] [review]:
-----------------------------------------------------------------
Super.
::: mobile/android/base/home/LastTabsPage.java
@@ +159,5 @@
> mRestoreButton.setVisibility(View.GONE);
>
> if (mEmptyView == null) {
> // Set empty page view. We delay this so that the empty view won't flash.
> + ViewStub emptyViewStub = (ViewStub) getActivity().findViewById(R.id.home_empty_view_stub);
Please make this final.
::: mobile/android/base/home/MostRecentPage.java
@@ +158,5 @@
> // Cursor is empty, so hide the title and set the empty view if it hasn't been set already.
> mTitle.setVisibility(View.GONE);
> if (mEmptyView == null) {
> // Set empty page view. We delay this so that the empty view won't flash.
> + ViewStub emptyViewStub = (ViewStub) getActivity().findViewById(R.id.home_empty_view_stub);
Please make this final.
Attachment #788427 -
Flags: review?(sriram) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Forgot to drop the revision here: https://hg.mozilla.org/projects/fig/rev/dff6e98eaac0
Whiteboard: fixed-fig
Comment 4•12 years ago
|
||
Assignee: nobody → liuche
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
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
•