1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-02-12 05:00:15 +00:00

Uitilize kotlin elvis operator

This commit is contained in:
Yevhen Babiichuk (DustDFG)
2026-02-09 23:19:32 +02:00
parent 451409fc3b
commit edfdbe805f

View File

@@ -327,7 +327,7 @@ class FeedGroupDialog : DialogFragment(), BackPressable {
groupIcon = feedGroupEntity?.icon
groupSortOrder = feedGroupEntity?.sortOrder ?: -1
val feedGroupIcon = if (selectedIcon == null) icon else selectedIcon!!
val feedGroupIcon = selectedIcon ?: icon
feedGroupCreateBinding.iconPreview.setImageResource(feedGroupIcon.getDrawableRes())
if (feedGroupCreateBinding.groupNameInput.text.isNullOrBlank()) {