diff options
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt | 4 |
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 | ||
19 | package org.pacien.tincapp.activities.status.nodes | 19 | package org.pacien.tincapp.activities.status.nodes |
20 | 20 | ||
21 | import androidx.lifecycle.ViewModelProviders | ||
22 | import android.os.Bundle | 21 | import android.os.Bundle |
23 | import androidx.appcompat.app.AlertDialog | 22 | import androidx.appcompat.app.AlertDialog |
24 | import android.view.LayoutInflater | 23 | import android.view.LayoutInflater |
25 | import android.view.View | 24 | import android.view.View |
26 | import android.view.ViewGroup | 25 | import android.view.ViewGroup |
26 | import androidx.lifecycle.ViewModelProvider | ||
27 | import org.pacien.tincapp.R | 27 | import org.pacien.tincapp.R |
28 | import org.pacien.tincapp.activities.BaseFragment | 28 | import org.pacien.tincapp.activities.BaseFragment |
29 | import org.pacien.tincapp.commands.Tinc | 29 | import 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 | ||