Переглянути джерело

Fix crashing when clicking the search icon (#6128)

Midyan Hamdoun 3 роки тому
батько
коміт
3800065230

+ 3 - 3
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),
                 )
             }