Skip to content

Commit

Permalink
Fixed haptic feedback issue for some setting item.
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Aug 15, 2024
1 parent 7b05b2e commit bf674a5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ class SettingsFragment : PreferenceFragmentCompat() {
}

findPreference<SwitchPreferenceCompat>(Constants.PREF_HAPTIC_FEEDBACK)?.apply {
setOnPreferenceChangeListener { _, newValue ->
if (newValue as Boolean) {
VibrationUtils.performHapticFeedback(view)
}
setOnPreferenceChangeListener { _, _ ->
VibrationUtils.performHapticFeedback(view)

true
}
Expand Down

0 comments on commit bf674a5

Please sign in to comment.