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

Commit ff0a3bb9 authored by Graciela Putri's avatar Graciela Putri Committed by Android (Google) Code Review
Browse files

Merge "Vertically center SCM restart dialog" into udc-dev

parents 0667b400 dd4b3754
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -165,10 +165,10 @@ class RestartDialogWindowManager extends CompatUIWindowManagerAbstract {

        final Rect taskBounds = getTaskBounds();
        final Rect taskStableBounds = getTaskStableBounds();

        marginParams.topMargin = taskStableBounds.top - taskBounds.top + mDialogVerticalMargin;
        marginParams.bottomMargin =
                taskBounds.bottom - taskStableBounds.bottom + mDialogVerticalMargin;
        // only update margins based on taskbar insets
        marginParams.topMargin = mDialogVerticalMargin;
        marginParams.bottomMargin = taskBounds.bottom - taskStableBounds.bottom
                + mDialogVerticalMargin;
        dialogContainer.setLayoutParams(marginParams);
    }