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

Commit ed3f2e38 authored by Tiger Huang's avatar Tiger Huang
Browse files

Fix WindowInsets#getStableInsets

WindowInsets#getStableInsets should return system bar insets as if
system bars are visible, regardless of the window flags.

Fix: 228807465
Test: See if a window with FLAG_LAYOUT_NO_LIMITS or FLAG_FULLSCREEN can
      receive all the system bar insets.
Change-Id: Ib8fff5ba78c8f52141a048027821ef182d2f7992
parent bfccc9fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -675,7 +675,7 @@ public final class WindowInsets {
    @Deprecated
    @NonNull
    public Insets getStableInsets() {
        return getInsets(mTypeMaxInsetsMap, mCompatInsetsTypes);
        return getInsets(mTypeMaxInsetsMap, systemBars());
    }

    /**