diff options
Diffstat (limited to 'app/src/main/java/org/pacien')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/status/subnets/SubnetListFragment.kt | 4 |
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 | |||
21 | import android.arch.lifecycle.Observer | 21 | import android.arch.lifecycle.Observer |
22 | import android.arch.lifecycle.ViewModelProviders | 22 | import android.arch.lifecycle.ViewModelProviders |
23 | import android.os.Bundle | 23 | import android.os.Bundle |
24 | import android.support.v4.app.Fragment | ||
25 | import android.view.LayoutInflater | 24 | import android.view.LayoutInflater |
26 | import android.view.View | 25 | import android.view.View |
27 | import android.view.ViewGroup | 26 | import android.view.ViewGroup |
28 | import kotlinx.android.synthetic.main.status_subnet_list_fragment.* | 27 | import kotlinx.android.synthetic.main.status_subnet_list_fragment.* |
29 | import org.pacien.tincapp.R | 28 | import org.pacien.tincapp.R |
29 | import org.pacien.tincapp.activities.BaseFragment | ||
30 | import org.pacien.tincapp.extensions.hideBottomSeparator | 30 | import org.pacien.tincapp.extensions.hideBottomSeparator |
31 | import org.pacien.tincapp.extensions.hideTopSeparator | 31 | import org.pacien.tincapp.extensions.hideTopSeparator |
32 | import org.pacien.tincapp.extensions.setElements | 32 | import 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 | */ |
37 | class SubnetListFragment : Fragment() { | 37 | class 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) } } |