Skip to content
Snippets Groups Projects
Commit 65a882fd authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fix a build issue

parent 585766c3
No related branches found
No related tags found
No related merge requests found
...@@ -210,8 +210,7 @@ class BufferViewConfigFragment : ServiceBoundFragment() { ...@@ -210,8 +210,7 @@ class BufferViewConfigFragment : ServiceBoundFragment() {
val (config, list) = info ?: Pair(null, emptyList()) val (config, list) = info ?: Pair(null, emptyList())
val minimumActivity = config?.minimumActivity() ?: Buffer_Activity.NONE val minimumActivity = config?.minimumActivity() ?: Buffer_Activity.NONE
val activities = activityList.associate { it.bufferId to it.filtered } val activities = activityList.associate { it.bufferId to it.filtered }
activity?.runOnUiThread { val processedList = list.asSequence().sortedBy { props ->
listAdapter.submitList(list.asSequence().sortedBy { props ->
!props.info.type.hasFlag(Buffer_Type.StatusBuffer) !props.info.type.hasFlag(Buffer_Type.StatusBuffer)
}.sortedBy { props -> }.sortedBy { props ->
props.network.networkName props.network.networkName
...@@ -242,11 +241,13 @@ class BufferViewConfigFragment : ServiceBoundFragment() { ...@@ -242,11 +241,13 @@ class BufferViewConfigFragment : ServiceBoundFragment() {
) )
) )
}.filter { (props, state) -> }.filter { (props, state) ->
props.info.type.hasFlag(BufferInfo.Type.StatusBuffer) || state.networkExpanded (props.info.type.hasFlag(BufferInfo.Type.StatusBuffer) || state.networkExpanded) &&
}.filter { (minimumActivity.toInt() <= props.bufferActivity.toInt() ||
minimumActivity.toInt() <= it.props.bufferActivity.toInt() || props.info.type.hasFlag(Buffer_Type.StatusBuffer))
it.props.info.type.hasFlag(Buffer_Type.StatusBuffer) }.toList()
}.toList())
activity?.runOnUiThread {
listAdapter.submitList(processedList)
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment