summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/java/com/wireguard/android
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-04-21 16:37:31 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-04-21 17:17:41 +0530
commit782550318a1cceff1b9a3df8c7ceff31f09c94b6 (patch)
treee6272c3391b563d14dca69e8050d3f17cf60123a /ui/src/main/java/com/wireguard/android
parentd02543639bc7c92c2467ed874540391890f5cd11 (diff)
ui: remove some more non-null assertions on binding fields
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/java/com/wireguard/android')
-rw-r--r--ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.kt2
-rw-r--r--ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.kt
index 3ac25201..8d3bbcba 100644
--- a/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.kt
+++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.kt
@@ -43,7 +43,7 @@ class TunnelDetailFragment : BaseFragment() {
super.onCreateView(inflater, container, savedInstanceState)
binding = TunnelDetailFragmentBinding.inflate(inflater, container, false)
binding?.executePendingBindings()
- return binding!!.root
+ return binding?.root
}
override fun onDestroyView() {
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 6d1c3fee..c76ca6ac 100644
--- a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt
+++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt
@@ -101,7 +101,7 @@ class TunnelListFragment : BaseFragment() {
}
executePendingBindings()
}
- return binding!!.root
+ return binding?.root
}
override fun onDestroyView() {