From a490fd5a5e1fae4a5eacdf95a4dbb737f44ad9fe Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 22 Aug 2018 00:55:58 +0200 Subject: Switch to BaseFragment --- .../pacien/tincapp/activities/status/subnets/SubnetListFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src') 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 import android.arch.lifecycle.Observer import android.arch.lifecycle.ViewModelProviders import android.os.Bundle -import android.support.v4.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic.main.status_subnet_list_fragment.* import org.pacien.tincapp.R +import org.pacien.tincapp.activities.BaseFragment import org.pacien.tincapp.extensions.hideBottomSeparator import org.pacien.tincapp.extensions.hideTopSeparator import org.pacien.tincapp.extensions.setElements @@ -34,7 +34,7 @@ import org.pacien.tincapp.extensions.setElements /** * @author pacien */ -class SubnetListFragment : Fragment() { +class SubnetListFragment : BaseFragment() { private val subnetListViewModel by lazy { ViewModelProviders.of(this).get(SubnetListViewModel::class.java) } private val subnetListAdapter by lazy { SubnetInfoArrayAdapter(context) } private val subnetListObserver by lazy { Observer> { subnetListAdapter.setElements(it) } } -- cgit v1.2.3