Fix fab position
This commit is contained in:
1 parent
d3bf20bee6
commit
b53c29c035
1 file changed
+6
@@ -314,6 +314,11 @@ public class DownloadsScene extends ToolbarScene
|
|||||||
setLiftOnScrollTargetView(mRecyclerView);
|
setLiftOnScrollTargetView(mRecyclerView);
|
||||||
mFastScroller = (FastScroller) ViewUtils.$$(content, R.id.fast_scroller);
|
mFastScroller = (FastScroller) ViewUtils.$$(content, R.id.fast_scroller);
|
||||||
mFabLayout = (FabLayout) ViewUtils.$$(view, R.id.fab_layout);
|
mFabLayout = (FabLayout) ViewUtils.$$(view, R.id.fab_layout);
|
||||||
|
|
||||||
|
// Workaround
|
||||||
|
((ViewGroup)mFabLayout.getParent()).removeView(mFabLayout);
|
||||||
|
container.addView(mFabLayout);
|
||||||
|
|
||||||
mTip = (TextView) ViewUtils.$$(view, R.id.tip);
|
mTip = (TextView) ViewUtils.$$(view, R.id.tip);
|
||||||
mViewTransition = new ViewTransition(content, mTip);
|
mViewTransition = new ViewTransition(content, mTip);
|
||||||
|
|
||||||
@@ -389,6 +394,7 @@ public class DownloadsScene extends ToolbarScene
|
|||||||
}
|
}
|
||||||
if (null != mFabLayout) {
|
if (null != mFabLayout) {
|
||||||
removeAboveSnackView(mFabLayout);
|
removeAboveSnackView(mFabLayout);
|
||||||
|
((ViewGroup)mFabLayout.getParent()).removeView(mFabLayout);
|
||||||
mFabLayout = null;
|
mFabLayout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user