diff options
author | Torsten Grote <t@grobox.de> | 2020-04-30 14:57:41 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-04-30 14:57:41 -0300 |
commit | d118436966331f23acb872d9c13e1ab6403072c0 (patch) | |
tree | 3d8202563424466eb5eca72a6d5b8ccc3369c3a3 /cashier | |
parent | 056be53a8d51fb6e45167f5d1ec317513b87a906 (diff) | |
download | taler-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')
-rw-r--r-- | cashier/build.gradle | 2 | ||||
-rw-r--r-- | cashier/src/main/java/net/taler/cashier/ConfigFragment.kt | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cashier/build.gradle b/cashier/build.gradle index e256396..150e277 100644 --- a/cashier/build.gradle +++ b/cashier/build.gradle @@ -56,7 +56,7 @@ android { dependencies { implementation project(":taler-kotlin-common") implementation 'androidx.constraintlayout:constraintlayout:1.1.3' - implementation 'androidx.security:security-crypto:1.0.0-beta01' + implementation 'androidx.security:security-crypto:1.0.0-rc01' implementation 'com.google.android.material:material:1.1.0' implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" 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 |