aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-19 11:39:14 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-19 11:39:14 +0000
commit7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9 (patch)
tree86e7121e0971cfac60234572ccca1656c336a993 /app
parent037223e28666f2d9294a5b587af35094df1121e3 (diff)
downloadinfinity-for-reddit-7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9.tar
infinity-for-reddit-7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9.tar.gz
infinity-for-reddit-7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9.tar.bz2
infinity-for-reddit-7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9.tar.lz
infinity-for-reddit-7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9.tar.xz
infinity-for-reddit-7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9.tar.zst
infinity-for-reddit-7e2a8d4782be539ae0a6b61f57fdf4dafc0a7fa9.zip
Fix RecyclerView's padding in TrendingActivity in immersive interface.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/TrendingActivity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/TrendingActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/TrendingActivity.java
index db550a4f..1cea0c0e 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/TrendingActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/TrendingActivity.java
@@ -136,6 +136,11 @@ public class TrendingActivity extends BaseActivity {
window.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}
adjustToolbar(toolbar);
+
+ int navBarResourceId = getResources().getIdentifier("navigation_bar_height", "dimen", "android");
+ if (navBarResourceId > 0) {
+ recyclerView.setPadding(0, 0, 0, recyclerView.getPaddingBottom() + getResources().getDimensionPixelSize(navBarResourceId));
+ }
}
}