aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-04-21 16:25:12 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-04-21 16:25:12 +0530
commit1bbcf83f4359237fced87ba6036163bc04ac8a95 (patch)
treee81dcf42aafda8429496a544607919cf66a352ab /ui
parentgradle: bump wrapper to v7.0 (diff)
downloadwireguard-android-1bbcf83f4359237fced87ba6036163bc04ac8a95.tar.xz
wireguard-android-1bbcf83f4359237fced87ba6036163bc04ac8a95.zip
TunnelListFragment: drop incorrect non-null assertion
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui')
-rw-r--r--ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt2
1 files changed, 1 insertions, 1 deletions
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 3fbc345..6d1c3fe 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 {