aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/org/pacien/tincapp/activities/start/NetworkListFragment.kt2
-rw-r--r--app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/start/NetworkListFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/start/NetworkListFragment.kt
index 7b5006a..fc5b6ff 100644
--- a/app/src/main/java/org/pacien/tincapp/activities/start/NetworkListFragment.kt
+++ b/app/src/main/java/org/pacien/tincapp/activities/start/NetworkListFragment.kt
@@ -54,10 +54,10 @@ class NetworkListFragment : BaseFragment() {
54 54
55 override fun onViewCreated(view: View, savedInstanceState: Bundle?) { 55 override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
56 val listHeaderView = layoutInflater.inflate(R.layout.start_network_list_header, startNetworkListBinding.root, false) 56 val listHeaderView = layoutInflater.inflate(R.layout.start_network_list_header, startNetworkListBinding.root, false)
57 startNetworkListBinding.startNetworkList.adapter = networkListAdapter
57 startNetworkListBinding.startNetworkList.addHeaderView(listHeaderView, null, false) 58 startNetworkListBinding.startNetworkList.addHeaderView(listHeaderView, null, false)
58 startNetworkListBinding.startNetworkList.hideBottomSeparator() 59 startNetworkListBinding.startNetworkList.hideBottomSeparator()
59 startNetworkListBinding.startNetworkList.onItemClickListener = AdapterView.OnItemClickListener(this::onItemClick) 60 startNetworkListBinding.startNetworkList.onItemClickListener = AdapterView.OnItemClickListener(this::onItemClick)
60 startNetworkListBinding.startNetworkList.adapter = networkListAdapter
61 } 61 }
62 62
63 @Suppress("UNUSED_PARAMETER") 63 @Suppress("UNUSED_PARAMETER")
diff --git a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt
index 474ab6e..8c0ef88 100644
--- a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt
+++ b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt
@@ -57,9 +57,9 @@ class NodeListFragment : BaseFragment() {
57 } 57 }
58 58
59 override fun onViewCreated(view: View, savedInstanceState: Bundle?) { 59 override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
60 statusNodeListFragmentBinding.statusNodeList.adapter = nodeListAdapter
60 statusNodeListFragmentBinding.statusNodeList.hideTopSeparator() 61 statusNodeListFragmentBinding.statusNodeList.hideTopSeparator()
61 statusNodeListFragmentBinding.statusNodeList.hideBottomSeparator() 62 statusNodeListFragmentBinding.statusNodeList.hideBottomSeparator()
62 statusNodeListFragmentBinding.statusNodeList.adapter = nodeListAdapter
63 } 63 }
64 64
65 private fun updateNodeList(nodes: List<NodeInfo>) { 65 private fun updateNodeList(nodes: List<NodeInfo>) {