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:
parent
b75af064c4
commit
1d72f8a11a
|
@ -15,7 +15,6 @@ import androidx.core.os.bundleOf
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import androidx.core.view.updateLayoutParams
|
import androidx.core.view.updateLayoutParams
|
||||||
import androidx.core.view.updatePadding
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.fragment.app.viewModels
|
import androidx.fragment.app.viewModels
|
||||||
import androidx.lifecycle.Lifecycle
|
import androidx.lifecycle.Lifecycle
|
||||||
|
@ -89,7 +88,6 @@ class AlbumsFragment : Fragment() {
|
||||||
leftMargin = insets.left
|
leftMargin = insets.left
|
||||||
rightMargin = insets.right
|
rightMargin = insets.right
|
||||||
}
|
}
|
||||||
albumsRecyclerView.updatePadding(bottom = insets.bottom)
|
|
||||||
|
|
||||||
windowInsets
|
windowInsets
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ import androidx.core.os.bundleOf
|
||||||
import androidx.core.view.ViewCompat
|
import androidx.core.view.ViewCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import androidx.core.view.updateLayoutParams
|
import androidx.core.view.updateLayoutParams
|
||||||
import androidx.core.view.updatePadding
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.fragment.app.viewModels
|
import androidx.fragment.app.viewModels
|
||||||
import androidx.lifecycle.Lifecycle
|
import androidx.lifecycle.Lifecycle
|
||||||
|
@ -96,7 +95,6 @@ class ReelsFragment : Fragment(R.layout.fragment_reels) {
|
||||||
leftMargin = insets.left
|
leftMargin = insets.left
|
||||||
rightMargin = insets.right
|
rightMargin = insets.right
|
||||||
}
|
}
|
||||||
reelsRecyclerView.updatePadding(bottom = insets.bottom)
|
|
||||||
|
|
||||||
windowInsets
|
windowInsets
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue