Fixes builds

parent 049f4274
Pipeline #473 passed with stages
in 44 minutes and 17 seconds
......@@ -100,7 +100,8 @@ class ChannelCreateFragment : ServiceBoundSettingsFragment() {
}
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
networkId = networkAdapter.getItem(position).id
networkId = networkAdapter.getItem(position)?.id
?: NetworkId(0)
hasSelectedNetwork = true
}
}
......
......@@ -78,7 +78,8 @@ class ChannelJoinFragment : ServiceBoundFragment() {
}
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
networkId = networkAdapter.getItem(position).id
networkId = networkAdapter.getItem(position)?.id
?: NetworkId(0)
hasSelectedNetwork = true
}
}
......
......@@ -121,7 +121,8 @@ class QueryCreateFragment : ServiceBoundFragment() {
}
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
networkId = networkAdapter.getItem(position).id
networkId = networkAdapter.getItem(position)?.id
?: NetworkId(0)
hasSelectedNetwork = true
modelHelper.queryCreate.networkId.onNext(networkId)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment