diff options
Diffstat (limited to 'cashier/src/main')
-rw-r--r-- | cashier/src/main/java/net/taler/cashier/ConfigFragment.kt | 6 |
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 |