Correct the view's bottom padding in onApplyWindowInsets() callback.
Call View.getPaddingBottom() instead of View.getBottom().
Bug: 150177271
Change-Id: I30afc7932245460cf32d65805df2a23e71eb4d60
diff --git a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
index 87358ec..e2b8ff3 100755
--- a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
+++ b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
@@ -251,7 +251,7 @@
findViewById(R.id.fragment_container)
.setOnApplyWindowInsetsListener((view, windowInsets) -> {
view.setPadding(view.getPaddingLeft(), windowInsets.getSystemWindowInsetTop(),
- view.getPaddingRight(), view.getBottom());
+ view.getPaddingRight(), view.getPaddingBottom());
// Consume only the top inset (status bar), to let other content in the Activity consume
// the nav bar (ie, by using "fitSystemWindows")
if (BuildCompat.isAtLeastQ()) {