summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-01-08 15:18:19 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-01-08 15:30:12 +0530
commit342ed5e2596c812f1604215ceffb4eb773bc0979 (patch)
tree9ff639334c7cd44ccec9ebf09b5eb04b483a53c5 /ui/src/main
parent2bf09f8e2d55772d0a9970f4b093f8c930da0376 (diff)
ui: make when statements exhaustive everywhere
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main')
-rw-r--r--ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt1
-rw-r--r--ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt1
2 files changed, 2 insertions, 0 deletions
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 -> {}
}
}
}