Skip to content

Commit 4ac948e

Browse files
committed
Use requireContext() instead of asserting non-null context
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
1 parent 658be1f commit 4ac948e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
255255
viewModel.getShowFutureItemsFromPreferences()
256256
)
257257

258-
AlertDialog.Builder(context!!)
258+
AlertDialog.Builder(requireContext())
259259
.setTitle(R.string.feed_hide_streams_title)
260260
.setMultiChoiceItems(dialogItems, checkedDialogItems) { _, which, isChecked ->
261261
checkedDialogItems[which] = isChecked

0 commit comments

Comments
 (0)