From 38000652306e866e0ad50e380a840120774872da Mon Sep 17 00:00:00 2001 From: Midyan Hamdoun Date: Mon, 18 Oct 2021 16:57:52 +0300 Subject: [PATCH] Fix crashing when clicking the search icon (#6128) --- .../tachiyomi/ui/setting/SettingsSecurityController.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 195ab4d21..dcdaf4fb4 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,9 +31,9 @@ class SettingsSecurityController : SettingsController() { defaultValue = false requireAuthentication( - activity as? FragmentActivity, - activity!!.getString(R.string.lock_with_biometrics), - activity!!.getString(R.string.confirm_lock_change), + context as? FragmentActivity, + context!!.getString(R.string.lock_with_biometrics), + context.getString(R.string.confirm_lock_change), ) }