diff options
author | pacien | 2018-08-22 00:55:58 +0200 |
---|---|---|
committer | pacien | 2018-08-22 00:55:58 +0200 |
commit | a490fd5a5e1fae4a5eacdf95a4dbb737f44ad9fe (patch) | |
tree | e1096d747244478f57dc7cfaa222e43385cf32c5 /app/src/main/java | |
parent | eb942f4b512a08c3e147b80679b72db646db26fb (diff) | |
download | tincapp-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.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) } } |