aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authoreuxane2024-09-18 23:41:13 +0200
committereuxane2024-09-18 23:41:13 +0200
commit90404626d927ce26d2e016f3dfcd677ffccfcde7 (patch)
treec0fb2228e4e7ba4c41ba335c71ff78f583f2287c /app/src/main/java
parent0bfa505bb1e7fdd514592dbd79a4ccd244d13cad (diff)
downloadtincapp-90404626d927ce26d2e016f3dfcd677ffccfcde7.tar.gz
status/nodes: remove deprecated factory call
Diffstat (limited to 'app/src/main/java')
-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