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

Commit 4d8f3f68 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix wrong padding on global actions dialog" into rvc-dev am: 7ee779c9 am: 0528f8e0

Change-Id: Ic3a421701d7e6014352c3bc724c1096b2b23fcf4
parents 629b35bc 0528f8e0
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.database.ContentObserver;
import android.graphics.Color;
import android.graphics.Insets;
import android.graphics.drawable.Drawable;
import android.media.AudioManager;
import android.net.ConnectivityManager;
@@ -2178,8 +2177,10 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
            ViewGroup root = (ViewGroup) mGlobalActionsLayout.getRootView();
            root.setOnApplyWindowInsetsListener((v, windowInsets) -> {
                if (mControlsUiController != null) {
                    Insets insets = windowInsets.getInsets(WindowInsets.Type.all());
                    root.setPadding(insets.left, insets.top, insets.right, insets.bottom);
                    root.setPadding(windowInsets.getStableInsetLeft(),
                            windowInsets.getStableInsetTop(),
                            windowInsets.getStableInsetRight(),
                            windowInsets.getStableInsetBottom());
                }
                return WindowInsets.CONSUMED;
            });