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

Unverified Commit fba6d33c authored by Tommy Webb's avatar Tommy Webb Committed by Michael Bestas
Browse files

Revert "Fix header protection height calculation"

This reverts commit b4873ddf4ec9594423ad379f1ed9b0a43af5457f.

Change-Id: Ida4651d364ead5f182fc60a9aec6788317b2422c
parent f923e304
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ public class FloatingHeaderView extends LinearLayout implements

        int clipTop = getPaddingTop() - mHeaderTopAdjustment;
        if (mTabsHidden) {
            clipTop += getPaddingBottom() * 2 - mHeaderBottomAdjustment;
            clipTop += getPaddingBottom() - mHeaderBottomAdjustment;
        }
        mRVClip.top = mTabsHidden ? clipTop : 0;
        mHeaderClip.top = clipTop;
@@ -444,6 +444,6 @@ public class FloatingHeaderView extends LinearLayout implements
        if (mTabsHidden || !mHeaderCollapsed) {
            return 0;
        }
        return Math.max(getHeight() - getPaddingTop() + mTranslationY + getPaddingBottom(), 0);
        return Math.max(getHeight() - getPaddingTop() + mTranslationY, 0);
    }
}