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

Commit fba9120c authored by John Spurlock's avatar John Spurlock
Browse files

Apply insets manually in StatusBarWindowView.

Bug:14131489
Change-Id: Ie4be2185cae98764ea44b2e042210f13412a02aa
parent 6513f35c
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();