Fix null safety
This commit is contained in:
parent
fdee056ade
commit
20e71f355a
16 changed files with 40 additions and 67 deletions
|
@ -56,9 +56,7 @@ class DeletePlaylistDialog : DialogFragment() {
|
|||
message(text = content)
|
||||
negativeButton(android.R.string.cancel)
|
||||
positiveButton(R.string.action_delete) {
|
||||
if (activity == null)
|
||||
return@positiveButton
|
||||
PlaylistsUtil.deletePlaylists(activity!!, playlists)
|
||||
PlaylistsUtil.deletePlaylists(requireContext(), playlists)
|
||||
}
|
||||
negativeButton(android.R.string.cancel)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue