Merge "Fix transparent view initial height" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
32e3767ec3
@@ -82,12 +82,12 @@ public class QSCustomizer extends LinearLayout {
|
|||||||
DefaultItemAnimator animator = new DefaultItemAnimator();
|
DefaultItemAnimator animator = new DefaultItemAnimator();
|
||||||
animator.setMoveDuration(TileAdapter.MOVE_DURATION);
|
animator.setMoveDuration(TileAdapter.MOVE_DURATION);
|
||||||
mRecyclerView.setItemAnimator(animator);
|
mRecyclerView.setItemAnimator(animator);
|
||||||
|
|
||||||
|
updateTransparentViewHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateResources() {
|
void updateResources() {
|
||||||
LayoutParams lp = (LayoutParams) mTransparentView.getLayoutParams();
|
updateTransparentViewHeight();
|
||||||
lp.height = QSUtils.getQsHeaderSystemIconsAreaHeight(mContext);
|
|
||||||
mTransparentView.setLayoutParams(lp);
|
|
||||||
mRecyclerView.getAdapter().notifyItemChanged(0);
|
mRecyclerView.getAdapter().notifyItemChanged(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -236,4 +236,10 @@ public class QSCustomizer extends LinearLayout {
|
|||||||
public boolean isOpening() {
|
public boolean isOpening() {
|
||||||
return mOpening;
|
return mOpening;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void updateTransparentViewHeight() {
|
||||||
|
LayoutParams lp = (LayoutParams) mTransparentView.getLayoutParams();
|
||||||
|
lp.height = QSUtils.getQsHeaderSystemIconsAreaHeight(mContext);
|
||||||
|
mTransparentView.setLayoutParams(lp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user