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

Commit 403ae7b4 authored by Heemin Seog's avatar Heemin Seog Committed by Automerger Merge Worker
Browse files

Merge "Ensure the notif panel is inflated" into rvc-qpr-dev am: 434a4167 am: b57fab0a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12673552

Change-Id: Ic0c73b6be7d1ff10ac7c4d7519dc8228cb52b452
parents 41787139 b57fab0a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -192,6 +192,12 @@ public class NotificationPanelViewController extends OverlayPanelViewController
        boolean isKeyboardVisible = (vis & InputMethodService.IME_VISIBLE) != 0;
        int bottomMargin = isKeyboardVisible ? 0 : mNavBarHeight;
        ViewGroup container = (ViewGroup) getLayout();
        if (container == null) {
            // Notification panel hasn't been inflated before. We shouldn't try to update the layout
            // params.
            return;
        }

        ViewGroup.MarginLayoutParams params =
                (ViewGroup.MarginLayoutParams) container.getLayoutParams();
        params.setMargins(params.leftMargin, params.topMargin, params.rightMargin, bottomMargin);