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

Commit 7cf71fbd authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

A few small missing things from the custom action bar layout.

Change-Id: I91e0b43ccf92d5c9541f80220922951acb0795e7
parent ad4a174b
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -207,6 +207,16 @@ public class ActionBarOverlayLayout extends ViewGroup {
        return new LayoutParams(getContext(), attrs);
    }

    @Override
    protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {
        return new LayoutParams(p);
    }

    @Override
    protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
        return p instanceof LayoutParams;
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int maxHeight = 0;
@@ -336,6 +346,11 @@ public class ActionBarOverlayLayout extends ViewGroup {
        }
    }

    @Override
    public boolean shouldDelayChildPressedState() {
        return false;
    }

    void pullChildren() {
        if (mContent == null) {
            mContent = findViewById(com.android.internal.R.id.content);