aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/org/pacien/tincapp/activities/status/subnets/SubnetListFragment.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/status/subnets/SubnetListFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/status/subnets/SubnetListFragment.kt
index 084ec68..abaf517 100644
--- a/app/src/main/java/org/pacien/tincapp/activities/status/subnets/SubnetListFragment.kt
+++ b/app/src/main/java/org/pacien/tincapp/activities/status/subnets/SubnetListFragment.kt
@@ -21,12 +21,12 @@ package org.pacien.tincapp.activities.status.subnets
21import android.arch.lifecycle.Observer 21import android.arch.lifecycle.Observer
22import android.arch.lifecycle.ViewModelProviders 22import android.arch.lifecycle.ViewModelProviders
23import android.os.Bundle 23import android.os.Bundle
24import android.support.v4.app.Fragment
25import android.view.LayoutInflater 24import android.view.LayoutInflater
26import android.view.View 25import android.view.View
27import android.view.ViewGroup 26import android.view.ViewGroup
28import kotlinx.android.synthetic.main.status_subnet_list_fragment.* 27import kotlinx.android.synthetic.main.status_subnet_list_fragment.*
29import org.pacien.tincapp.R 28import org.pacien.tincapp.R
29import org.pacien.tincapp.activities.BaseFragment
30import org.pacien.tincapp.extensions.hideBottomSeparator 30import org.pacien.tincapp.extensions.hideBottomSeparator
31import org.pacien.tincapp.extensions.hideTopSeparator 31import org.pacien.tincapp.extensions.hideTopSeparator
32import org.pacien.tincapp.extensions.setElements 32import org.pacien.tincapp.extensions.setElements
@@ -34,7 +34,7 @@ import org.pacien.tincapp.extensions.setElements
34/** 34/**
35 * @author pacien 35 * @author pacien
36 */ 36 */
37class SubnetListFragment : Fragment() { 37class SubnetListFragment : BaseFragment() {
38 private val subnetListViewModel by lazy { ViewModelProviders.of(this).get(SubnetListViewModel::class.java) } 38 private val subnetListViewModel by lazy { ViewModelProviders.of(this).get(SubnetListViewModel::class.java) }
39 private val subnetListAdapter by lazy { SubnetInfoArrayAdapter(context) } 39 private val subnetListAdapter by lazy { SubnetInfoArrayAdapter(context) }
40 private val subnetListObserver by lazy { Observer<List<SubnetInfo>> { subnetListAdapter.setElements(it) } } 40 private val subnetListObserver by lazy { Observer<List<SubnetInfo>> { subnetListAdapter.setElements(it) } }