aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorpacien2018-08-22 00:55:58 +0200
committerpacien2018-08-22 00:55:58 +0200
commita490fd5a5e1fae4a5eacdf95a4dbb737f44ad9fe (patch)
treee1096d747244478f57dc7cfaa222e43385cf32c5 /app/src/main/java
parenteb942f4b512a08c3e147b80679b72db646db26fb (diff)
downloadtincapp-a490fd5a5e1fae4a5eacdf95a4dbb737f44ad9fe.tar.gz
Switch to BaseFragment
Diffstat (limited to 'app/src/main/java')
-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) } }