Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e59a8bf4 authored by Anton Potapov's avatar Anton Potapov Committed by Automerger Merge Worker
Browse files

Merge "Fix transparent view initial height" into tm-qpr-dev am: 32e3767e am: 4b04ea31

parents c3b942e6 4b04ea31
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -82,12 +82,12 @@ public class QSCustomizer extends LinearLayout {
        DefaultItemAnimator animator = new DefaultItemAnimator();
        animator.setMoveDuration(TileAdapter.MOVE_DURATION);
        mRecyclerView.setItemAnimator(animator);

        updateTransparentViewHeight();
    }

    void updateResources() {
        LayoutParams lp = (LayoutParams) mTransparentView.getLayoutParams();
        lp.height = QSUtils.getQsHeaderSystemIconsAreaHeight(mContext);
        mTransparentView.setLayoutParams(lp);
        updateTransparentViewHeight();
        mRecyclerView.getAdapter().notifyItemChanged(0);
    }

@@ -236,4 +236,10 @@ public class QSCustomizer extends LinearLayout {
    public boolean isOpening() {
        return mOpening;
    }

    private void updateTransparentViewHeight() {
        LayoutParams lp = (LayoutParams) mTransparentView.getLayoutParams();
        lp.height = QSUtils.getQsHeaderSystemIconsAreaHeight(mContext);
        mTransparentView.setLayoutParams(lp);
    }
}
 No newline at end of file