From 342ed5e2596c812f1604215ceffb4eb773bc0979 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 8 Jan 2022 15:18:19 +0530 Subject: [PATCH] ui: make when statements exhaustive everywhere Signed-off-by: Harsh Shandilya --- .../java/com/wireguard/android/fragment/TunnelEditorFragment.kt | 1 + .../com/wireguard/android/preference/ZipExporterPreference.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt index 716f7b25..6c6f53f9 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt @@ -297,6 +297,7 @@ class TunnelEditorFragment : BaseFragment() { Snackbar.LENGTH_SHORT ).show() } + is BiometricAuthenticator.Result.Cancelled -> {} } } } else { diff --git a/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt b/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt index 27d69538..65880303 100644 --- a/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt +++ b/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt @@ -98,6 +98,7 @@ class ZipExporterPreference(context: Context, attrs: AttributeSet?) : Preference Snackbar.LENGTH_SHORT ).show() } + is BiometricAuthenticator.Result.Cancelled -> {} } } }