From 1bbcf83f4359237fced87ba6036163bc04ac8a95 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 21 Apr 2021 16:25:12 +0530 Subject: TunnelListFragment: drop incorrect non-null assertion Signed-off-by: Harsh Shandilya --- ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt index 3fbc3451..6d1c3fee 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt @@ -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 { -- cgit v1.2.3