aboutsummaryrefslogtreecommitdiffstatshomepage
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
parentgradle: bump AGP, Kotlin and AGP (diff)
downloadwireguard-android-342ed5e2596c812f1604215ceffb4eb773bc0979.tar.xz
wireguard-android-342ed5e2596c812f1604215ceffb4eb773bc0979.zip
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 716f7b2..6c6f53f 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 27d6953..6588030 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 -> {}
}
}
}