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

Commit f4d4f9b9 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Don't assume device has a status bar (TVs don't)"

parents b455540b f039efa0
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -93,8 +93,8 @@ public class RoundedCorners extends SystemUI implements Tunable {
    private void setupPadding(int padding) {
        // Add some padding to all the content near the edge of the screen.
        StatusBar sb = getComponent(StatusBar.class);
        View statusBar = sb.getStatusBarWindow();

        View statusBar = (sb != null ? sb.getStatusBarWindow() : null);
        if (statusBar != null) {
            TunablePadding.addTunablePadding(statusBar.findViewById(R.id.keyguard_header), PADDING,
                    padding, FLAG_END);

@@ -104,6 +104,7 @@ public class RoundedCorners extends SystemUI implements Tunable {
            fragmentHostManager.addTagListener(QS.TAG,
                    new TunablePaddingTagListener(padding, R.id.header));
        }
    }

    private WindowManager.LayoutParams getWindowLayoutParams() {
        final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(