diff --git a/app/src/main/java/top/niunaijun/blackdex/view/setting/SettingFragment.kt b/app/src/main/java/top/niunaijun/blackdex/view/setting/SettingFragment.kt index e393107..77c6d32 100644 --- a/app/src/main/java/top/niunaijun/blackdex/view/setting/SettingFragment.kt +++ b/app/src/main/java/top/niunaijun/blackdex/view/setting/SettingFragment.kt @@ -86,7 +86,7 @@ class SettingFragment : PreferenceFragmentCompat() { } private val mHookDumpChange = Preference.OnPreferenceChangeListener { _, newValue -> - AppManager.mBlackBoxLoader.saveEnable(newValue as Boolean) + AppManager.mBlackBoxLoader.setHookDump(newValue as Boolean) return@OnPreferenceChangeListener true } @@ -122,4 +122,4 @@ class SettingFragment : PreferenceFragmentCompat() { savePathPreference.summary = path } } -} \ No newline at end of file +}