1
0
mirror of https://github.com/etesync/android synced 2024-12-23 07:08:16 +00:00

List entries fragment: remove unused variable.

This commit is contained in:
Tom Hacohen 2020-09-01 14:03:07 +03:00
parent 117f4e41f4
commit f725b3069b

View File

@ -18,13 +18,11 @@ import com.etesync.syncadapter.CachedItem
import com.etesync.syncadapter.Constants
import com.etesync.syncadapter.R
import java.text.SimpleDateFormat
import java.util.concurrent.Future
class ListEntriesFragment : ListFragment(), AdapterView.OnItemClickListener {
private val collectionModel: CollectionViewModel by activityViewModels()
private val itemsModel: ItemsViewModel by activityViewModels()
private var asyncTask: Future<Unit>? = null
private var state: Parcelable? = null
private var emptyTextView: TextView? = null
@ -70,12 +68,6 @@ class ListEntriesFragment : ListFragment(), AdapterView.OnItemClickListener {
super.onPause()
}
override fun onDestroyView() {
super.onDestroyView()
if (asyncTask != null)
asyncTask!!.cancel(true)
}
override fun onItemClick(parent: AdapterView<*>, view: View, position: Int, id: Long) {
val item = listAdapter?.getItem(position) as CachedItem
activity?.supportFragmentManager?.commit {