get context from view instead of fragment when possible

This commit is contained in:
Conny Duck 2024-04-17 21:40:46 +02:00
parent eaaf865f43
commit 98098a1d56
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class NotificationsFragment :
if (getView() != null) {
binding.recyclerView.scrollBy(
0,
Utils.dpToPx(requireContext(), -30)
Utils.dpToPx(binding.recyclerView.context, -30)
)
}
}