瀏覽代碼

Fix crashing when clicking the search icon (#6128)

Midyan Hamdoun 3 年之前
父節點
當前提交
3800065230
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSecurityController.kt

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