mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-11-05 22:24:27 +00:00
Use requireContext() instead of asserting non-null context
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
1 parent
deb6b4230d
commit
b3f4cb8114
1 file changed
+1
-1
@@ -255,7 +255,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
||||
viewModel.getShowFutureItemsFromPreferences()
|
||||
)
|
||||
|
||||
AlertDialog.Builder(context!!)
|
||||
AlertDialog.Builder(requireContext())
|
||||
.setTitle(R.string.feed_hide_streams_title)
|
||||
.setMultiChoiceItems(dialogItems, checkedDialogItems) { _, which, isChecked ->
|
||||
checkedDialogItems[which] = isChecked
|
||||
|
||||
Reference in new issue
Block a user