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

Commit 9a722ebc authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Apply insets manually in StatusBarWindowView."

parents 87e7ba4f fba9120c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.app.StatusBarManager;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.MotionEvent;
@@ -51,6 +52,16 @@ public class StatusBarWindowView extends FrameLayout
        setWillNotDraw(!DEBUG);
    }

    @Override
    protected boolean fitSystemWindows(Rect insets) {
        if (getFitsSystemWindows()) {
            setPadding(insets.left, insets.top, insets.right, insets.bottom);
        } else {
            setPadding(0, 0, 0, 0);
        }
        return true;
    }

    @Override
    protected void onAttachedToWindow () {
        super.onAttachedToWindow();