TunnelListFragment: drop incorrect non-null assertion

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-04-21 16:25:12 +05:30
parent 169bd408f2
commit 1bbcf83f43
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80

View File

@ -239,7 +239,7 @@ class TunnelListFragment : BaseFragment() {
resources = null
animateFab(binding?.createFab, true)
checkedItems.clear()
binding!!.tunnelList.adapter!!.notifyDataSetChanged()
binding?.tunnelList?.adapter?.notifyDataSetChanged()
}
override fun onPrepareActionMode(mode: ActionMode, menu: Menu): Boolean {