get context from view instead of fragment when possible
This commit is contained in:
parent
eaaf865f43
commit
98098a1d56
|
@ -236,7 +236,7 @@ class NotificationsFragment :
|
|||
if (getView() != null) {
|
||||
binding.recyclerView.scrollBy(
|
||||
0,
|
||||
Utils.dpToPx(requireContext(), -30)
|
||||
Utils.dpToPx(binding.recyclerView.context, -30)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue