Glimpse: Stop using insets for thumbnails recycler views' padding

* Those are now constrained to bottom navigation bar

Change-Id: I7bfc1166cb532652e0ef23f5392f522389b750a4
This commit is contained in:
Sebastiano Barezzi 2023-09-03 18:02:57 +02:00
parent b75af064c4
commit 1d72f8a11a
No known key found for this signature in database
GPG Key ID: 763BD3AE91A7A13F
2 changed files with 0 additions and 4 deletions

View File

@ -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
}

View File

@ -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
}