From bfe7aa1ed21e1fd789db5a330dba51c622666377 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 18 Oct 2021 10:02:25 -0400 Subject: [PATCH] Minor cleanup --- .../kanade/tachiyomi/ui/setting/SettingsBrowseController.kt | 4 ++-- .../kanade/tachiyomi/ui/setting/SettingsSecurityController.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt index 0ce909d81..b927e6fbd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt @@ -58,8 +58,8 @@ class SettingsBrowseController : SettingsController() { if (context.isAuthenticationSupported() && activity != null) { requireAuthentication( activity as? FragmentActivity, - activity!!.getString(R.string.pref_category_nsfw_content), - activity!!.getString(R.string.confirm_lock_change), + context.getString(R.string.pref_category_nsfw_content), + context.getString(R.string.confirm_lock_change), ) } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSecurityController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSecurityController.kt index dcdaf4fb4..e0e5e4c39 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSecurityController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSecurityController.kt @@ -31,8 +31,8 @@ class SettingsSecurityController : SettingsController() { defaultValue = false requireAuthentication( - context as? FragmentActivity, - context!!.getString(R.string.lock_with_biometrics), + activity as? FragmentActivity, + context.getString(R.string.lock_with_biometrics), context.getString(R.string.confirm_lock_change), ) }