aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org')
-rw-r--r--app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt4
1 files changed, 2 insertions, 2 deletions
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 8c0ef88..b4ec0fb 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
@@ -18,12 +18,12 @@
18 18
19package org.pacien.tincapp.activities.status.nodes 19package org.pacien.tincapp.activities.status.nodes
20 20
21import androidx.lifecycle.ViewModelProviders
22import android.os.Bundle 21import android.os.Bundle
23import androidx.appcompat.app.AlertDialog 22import androidx.appcompat.app.AlertDialog
24import android.view.LayoutInflater 23import android.view.LayoutInflater
25import android.view.View 24import android.view.View
26import android.view.ViewGroup 25import android.view.ViewGroup
26import androidx.lifecycle.ViewModelProvider
27import org.pacien.tincapp.R 27import org.pacien.tincapp.R
28import org.pacien.tincapp.activities.BaseFragment 28import org.pacien.tincapp.activities.BaseFragment
29import org.pacien.tincapp.commands.Tinc 29import org.pacien.tincapp.commands.Tinc
@@ -42,7 +42,7 @@ class NodeListFragment : BaseFragment() {
42 private val vpnService = TincVpnService 42 private val vpnService = TincVpnService
43 private val tincCtl = Tinc 43 private val tincCtl = Tinc
44 private val netName by lazy { vpnService.getCurrentNetName()!! } 44 private val netName by lazy { vpnService.getCurrentNetName()!! }
45 private val nodeListViewModel by lazy { ViewModelProviders.of(this).get(NodeListViewModel::class.java) } 45 private val nodeListViewModel by lazy { ViewModelProvider(this).get(NodeListViewModel::class.java) }
46 private val nodeListAdapter by lazy { NodeInfoArrayAdapter(requireContext(), this::onItemClick) } 46 private val nodeListAdapter by lazy { NodeInfoArrayAdapter(requireContext(), this::onItemClick) }
47 private lateinit var statusNodeListFragmentBinding: StatusNodeListFragmentBinding 47 private lateinit var statusNodeListFragmentBinding: StatusNodeListFragmentBinding
48 48