Merge branch 'master' into bump
This commit is contained in:
commit
af072fd99b
@ -83,7 +83,15 @@ class FilterSheetFragment :
|
|||||||
val sourceGroup = binding.sourcesGroup
|
val sourceGroup = binding.sourcesGroup
|
||||||
|
|
||||||
repository.getSourcesDetailsOrStats().forEachIndexed { _, source ->
|
repository.getSourcesDetailsOrStats().forEachIndexed { _, source ->
|
||||||
val c = Chip(context)
|
val c: Chip? =
|
||||||
|
maybeIfContext {
|
||||||
|
Chip(it)
|
||||||
|
} as Chip?
|
||||||
|
|
||||||
|
if (c == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.ellipsize = TextUtils.TruncateAt.END
|
c.ellipsize = TextUtils.TruncateAt.END
|
||||||
|
|
||||||
maybeIfContext {
|
maybeIfContext {
|
||||||
@ -145,7 +153,11 @@ class FilterSheetFragment :
|
|||||||
val tags = repository.getTags()
|
val tags = repository.getTags()
|
||||||
|
|
||||||
tags.forEachIndexed { _, tag ->
|
tags.forEachIndexed { _, tag ->
|
||||||
val c = Chip(context)
|
val c: Chip? = maybeIfContext { Chip(it) } as Chip?
|
||||||
|
if (c == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.ellipsize = TextUtils.TruncateAt.END
|
c.ellipsize = TextUtils.TruncateAt.END
|
||||||
c.text = tag.tag
|
c.text = tag.tag
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user