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

Commit 3dcda69b authored by Ram Parameswaran's avatar Ram Parameswaran
Browse files

Add system bottom inset to drawer layout

For apps running on and targeting V+, system bar insets are no longer
appliedi by default  to the content view. This results the drawer layout
overlapping with system bars.

Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsNfcResolverDeviceTest#testNfcCustomizations:
Bug: 331730637

Change-Id: I71c97c294e1e5ed05472d8293e531c45cf394b71
parent 70081f62
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -917,7 +917,7 @@ public class ResolverActivity extends Activity implements
        mSystemWindowInsets = insets.getSystemWindowInsets();
        mSystemWindowInsets = insets.getSystemWindowInsets();


        mResolverDrawerLayout.setPadding(mSystemWindowInsets.left, mSystemWindowInsets.top,
        mResolverDrawerLayout.setPadding(mSystemWindowInsets.left, mSystemWindowInsets.top,
                mSystemWindowInsets.right, 0);
                mSystemWindowInsets.right, mSystemWindowInsets.bottom);


        resetButtonBar();
        resetButtonBar();


@@ -946,7 +946,7 @@ public class ResolverActivity extends Activity implements


        if (mSystemWindowInsets != null) {
        if (mSystemWindowInsets != null) {
            mResolverDrawerLayout.setPadding(mSystemWindowInsets.left, mSystemWindowInsets.top,
            mResolverDrawerLayout.setPadding(mSystemWindowInsets.left, mSystemWindowInsets.top,
                    mSystemWindowInsets.right, 0);
                    mSystemWindowInsets.right, mSystemWindowInsets.bottom);
        }
        }
    }
    }