Skip to content
Snippets Groups Projects
Unverified Commit 4141f6ce authored by Alex Paulescu's avatar Alex Paulescu Committed by GitHub
Browse files

Remove trailing commas from attributes list (DEV) #2457


* Removed trailing comma when elements from list were empty.

* Changed takeWhile to filter.

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
parent 5ea4bd50
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,6 @@ class ContactDiaryOverviewNestedAdapter : BaseAdapter<ContactDiaryOverviewNested
duration?.run { add(toStandardHours().toString()) }
resources?.run { forEach { add(context.getString(it)) } }
circumstances?.run { add(this) }
}.joinToString()
}.filter { it.isNotEmpty() }.joinToString()
}
}
......@@ -62,8 +62,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionNext"
android:inputType="textCapWords"
app:backgroundTint="@color/colorContactDiaryListItem" />
android:inputType="textCapWords" />
</com.google.android.material.textfield.TextInputLayout>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment