mirror of
https://github.com/etesync/android
synced 2025-01-11 00:01:12 +00:00
List entries fragment: remove unused variable.
This commit is contained in:
parent
117f4e41f4
commit
f725b3069b
@ -18,13 +18,11 @@ import com.etesync.syncadapter.CachedItem
|
|||||||
import com.etesync.syncadapter.Constants
|
import com.etesync.syncadapter.Constants
|
||||||
import com.etesync.syncadapter.R
|
import com.etesync.syncadapter.R
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.concurrent.Future
|
|
||||||
|
|
||||||
|
|
||||||
class ListEntriesFragment : ListFragment(), AdapterView.OnItemClickListener {
|
class ListEntriesFragment : ListFragment(), AdapterView.OnItemClickListener {
|
||||||
private val collectionModel: CollectionViewModel by activityViewModels()
|
private val collectionModel: CollectionViewModel by activityViewModels()
|
||||||
private val itemsModel: ItemsViewModel by activityViewModels()
|
private val itemsModel: ItemsViewModel by activityViewModels()
|
||||||
private var asyncTask: Future<Unit>? = null
|
|
||||||
private var state: Parcelable? = null
|
private var state: Parcelable? = null
|
||||||
|
|
||||||
private var emptyTextView: TextView? = null
|
private var emptyTextView: TextView? = null
|
||||||
@ -70,12 +68,6 @@ class ListEntriesFragment : ListFragment(), AdapterView.OnItemClickListener {
|
|||||||
super.onPause()
|
super.onPause()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroyView() {
|
|
||||||
super.onDestroyView()
|
|
||||||
if (asyncTask != null)
|
|
||||||
asyncTask!!.cancel(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onItemClick(parent: AdapterView<*>, view: View, position: Int, id: Long) {
|
override fun onItemClick(parent: AdapterView<*>, view: View, position: Int, id: Long) {
|
||||||
val item = listAdapter?.getItem(position) as CachedItem
|
val item = listAdapter?.getItem(position) as CachedItem
|
||||||
activity?.supportFragmentManager?.commit {
|
activity?.supportFragmentManager?.commit {
|
||||||
|
Loading…
Reference in New Issue
Block a user