From 1d72f8a11af4550be551f4058eb6aec343b43aba Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Sun, 3 Sep 2023 18:02:57 +0200 Subject: [PATCH] Glimpse: Stop using insets for thumbnails recycler views' padding * Those are now constrained to bottom navigation bar Change-Id: I7bfc1166cb532652e0ef23f5392f522389b750a4 --- .../main/java/org/lineageos/glimpse/fragments/AlbumsFragment.kt | 2 -- .../main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt | 2 -- 2 files changed, 4 deletions(-) diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/AlbumsFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/AlbumsFragment.kt index 5486a71..20d0ed3 100644 --- a/app/src/main/java/org/lineageos/glimpse/fragments/AlbumsFragment.kt +++ b/app/src/main/java/org/lineageos/glimpse/fragments/AlbumsFragment.kt @@ -15,7 +15,6 @@ import androidx.core.os.bundleOf import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import androidx.core.view.updateLayoutParams -import androidx.core.view.updatePadding import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.Lifecycle @@ -89,7 +88,6 @@ class AlbumsFragment : Fragment() { leftMargin = insets.left rightMargin = insets.right } - albumsRecyclerView.updatePadding(bottom = insets.bottom) windowInsets } diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt index 79d7eae..497a25c 100644 --- a/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt +++ b/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt @@ -13,7 +13,6 @@ import androidx.core.os.bundleOf import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import androidx.core.view.updateLayoutParams -import androidx.core.view.updatePadding import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.Lifecycle @@ -96,7 +95,6 @@ class ReelsFragment : Fragment(R.layout.fragment_reels) { leftMargin = insets.left rightMargin = insets.right } - reelsRecyclerView.updatePadding(bottom = insets.bottom) windowInsets }