File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
java/org/fcitx/fcitx5/android Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class AppPrefs(private val sharedPreferences: SharedPreferences) {
83
83
buttonLongPressVibrationMilliseconds = secondary
84
84
}
85
85
86
- val moreVibration = switch(R .string.more_vibration , " more_vibration " , false )
86
+ val hapticFeedback = switch(R .string.haptic_feedback , " haptic_feedback " , false )
87
87
88
88
val buttonPressVibrationAmplitude: ManagedPreference .PInt
89
89
val buttonLongPressVibrationAmplitude: ManagedPreference .PInt
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ class FcitxInputMethodService : LifecycleInputMethodService() {
126
126
prefs.keyboard.expandKeypressArea,
127
127
prefs.advanced.disableAnimation,
128
128
prefs.advanced.ignoreSystemWindowInsets,
129
- prefs.keyboard.moreVibration ,
129
+ prefs.keyboard.hapticFeedback ,
130
130
)
131
131
132
132
private fun replaceInputView (theme : Theme ): InputView {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ abstract class BaseKeyboard(
67
67
68
68
private val vivoKeypressWorkaround by prefs.advanced.vivoKeypressWorkaround
69
69
70
- private val moreVibration by prefs.keyboard.moreVibration
70
+ private val hapticFeedback by prefs.keyboard.hapticFeedback
71
71
72
72
var popupActionListener: PopupActionListener ? = null
73
73
@@ -158,7 +158,7 @@ abstract class BaseKeyboard(
158
158
is ReturnKey -> InputFeedbacks .SoundEffect .Return
159
159
else -> InputFeedbacks .SoundEffect .Standard
160
160
}
161
- val vibration: ((view: View ) -> Unit )? = if (moreVibration ) { view ->
161
+ val vibration: ((view: View ) -> Unit )? = if (hapticFeedback ) { view ->
162
162
InputFeedbacks .hapticFeedback(view)
163
163
} else null
164
164
if (def is SpaceKey ) {
@@ -223,7 +223,7 @@ abstract class BaseKeyboard(
223
223
}
224
224
is KeyDef .Behavior .Repeat -> {
225
225
repeatEnabled = true
226
- onRepeatListener = if (moreVibration && def is BackspaceKey ) { view ->
226
+ onRepeatListener = if (hapticFeedback && def is BackspaceKey ) { view ->
227
227
onAction(it.action)
228
228
InputFeedbacks .hapticFeedback(view)
229
229
} else { _ -> onAction(it.action) }
Original file line number Diff line number Diff line change 283
283
<string name =" restart_fcitx_instance_confirm" >Fcitx instance will be destroyed and reinitialized. Proceed?</string >
284
284
<string name =" ignore_system_window_insets" >Ignore system WindowInsets</string >
285
285
<string name =" browse_user_data_dir" >Browse user data directory</string >
286
- <string name =" more_vibration " >More vibration </string >
286
+ <string name =" haptic_feedback " >Haptic feedback on key repeat </string >
287
287
</resources >
You can’t perform that action at this time.
0 commit comments