aboutsummaryrefslogtreecommitdiff
path: root/cashier/src/main
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-04-30 14:57:41 -0300
committerTorsten Grote <t@grobox.de>2020-04-30 14:57:41 -0300
commitd118436966331f23acb872d9c13e1ab6403072c0 (patch)
tree3d8202563424466eb5eca72a6d5b8ccc3369c3a3 /cashier/src/main
parent056be53a8d51fb6e45167f5d1ec317513b87a906 (diff)
downloadtaler-android-d118436966331f23acb872d9c13e1ab6403072c0.tar.gz
taler-android-d118436966331f23acb872d9c13e1ab6403072c0.tar.bz2
taler-android-d118436966331f23acb872d9c13e1ab6403072c0.zip
Fix lint warnings that appeared after android gradle plugin update
Diffstat (limited to 'cashier/src/main')
-rw-r--r--cashier/src/main/java/net/taler/cashier/ConfigFragment.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/cashier/src/main/java/net/taler/cashier/ConfigFragment.kt b/cashier/src/main/java/net/taler/cashier/ConfigFragment.kt
index 501eed7..71495f3 100644
--- a/cashier/src/main/java/net/taler/cashier/ConfigFragment.kt
+++ b/cashier/src/main/java/net/taler/cashier/ConfigFragment.kt
@@ -132,14 +132,14 @@ class ConfigFragment : Fragment() {
findNavController().navigate(action)
}
ConfigResult.Offline -> {
- Snackbar.make(view!!, R.string.config_error_offline, LENGTH_LONG).show()
+ Snackbar.make(requireView(), R.string.config_error_offline, LENGTH_LONG).show()
}
is ConfigResult.Error -> {
if (result.authError) {
- Snackbar.make(view!!, R.string.config_error_auth, LENGTH_LONG).show()
+ Snackbar.make(requireView(), R.string.config_error_auth, LENGTH_LONG).show()
} else {
val str = getString(R.string.config_error, result.msg)
- Snackbar.make(view!!, str, LENGTH_LONG).show()
+ Snackbar.make(requireView(), str, LENGTH_LONG).show()
}
}
}.exhaustive