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

Commit 82624f13 authored by Ian Lake's avatar Ian Lake Committed by android-build-merger
Browse files

Merge "Relayout when base inner insets change" into oc-dev

am: 7f874db5

Change-Id: I91bc90559f462d622133a018b1217eae10b6e11b
parents f7a9adec 7f874db5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ public class ActionBarOverlayLayout extends ViewGroup implements DecorContentPar
    private final Rect mLastBaseContentInsets = new Rect();
    private final Rect mContentInsets = new Rect();
    private final Rect mBaseInnerInsets = new Rect();
    private final Rect mLastBaseInnerInsets = new Rect();
    private final Rect mInnerInsets = new Rect();
    private final Rect mLastInnerInsets = new Rect();

@@ -323,6 +324,10 @@ public class ActionBarOverlayLayout extends ViewGroup implements DecorContentPar

        mBaseInnerInsets.set(systemInsets);
        computeFitSystemWindows(mBaseInnerInsets, mBaseContentInsets);
        if (!mLastBaseInnerInsets.equals(mBaseInnerInsets)) {
            changed = true;
            mLastBaseContentInsets.set(mBaseContentInsets);
        }
        if (!mLastBaseContentInsets.equals(mBaseContentInsets)) {
            changed = true;
            mLastBaseContentInsets.set(mBaseContentInsets);