Uitilize kotlin elvis operator
This commit is contained in:
parent
a54c55e7a4
commit
12b766f175
1 changed files with 1 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ class FeedGroupDialog : DialogFragment(), BackPressable {
|
||||||
groupIcon = feedGroupEntity?.icon
|
groupIcon = feedGroupEntity?.icon
|
||||||
groupSortOrder = feedGroupEntity?.sortOrder ?: -1
|
groupSortOrder = feedGroupEntity?.sortOrder ?: -1
|
||||||
|
|
||||||
val feedGroupIcon = if (selectedIcon == null) icon else selectedIcon!!
|
val feedGroupIcon = selectedIcon ?: icon
|
||||||
feedGroupCreateBinding.iconPreview.setImageResource(feedGroupIcon.getDrawableRes())
|
feedGroupCreateBinding.iconPreview.setImageResource(feedGroupIcon.getDrawableRes())
|
||||||
|
|
||||||
if (feedGroupCreateBinding.groupNameInput.text.isNullOrBlank()) {
|
if (feedGroupCreateBinding.groupNameInput.text.isNullOrBlank()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue