Skip to content

Commit 0dd60b3

Browse files
committed
Modify default name
1 parent 9f9ca29 commit 0dd60b3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/src/main/java/org/fcitx/fcitx5/android/data/prefs/AppPrefs.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class AppPrefs(private val sharedPreferences: SharedPreferences) {
8383
buttonLongPressVibrationMilliseconds = secondary
8484
}
8585

86-
val moreVibration = switch(R.string.more_vibration, "more_vibration", false)
86+
val hapticFeedback = switch(R.string.haptic_feedback, "haptic_feedback", false)
8787

8888
val buttonPressVibrationAmplitude: ManagedPreference.PInt
8989
val buttonLongPressVibrationAmplitude: ManagedPreference.PInt

app/src/main/java/org/fcitx/fcitx5/android/input/FcitxInputMethodService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class FcitxInputMethodService : LifecycleInputMethodService() {
126126
prefs.keyboard.expandKeypressArea,
127127
prefs.advanced.disableAnimation,
128128
prefs.advanced.ignoreSystemWindowInsets,
129-
prefs.keyboard.moreVibration,
129+
prefs.keyboard.hapticFeedback,
130130
)
131131

132132
private fun replaceInputView(theme: Theme): InputView {

app/src/main/java/org/fcitx/fcitx5/android/input/keyboard/BaseKeyboard.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ abstract class BaseKeyboard(
6767

6868
private val vivoKeypressWorkaround by prefs.advanced.vivoKeypressWorkaround
6969

70-
private val moreVibration by prefs.keyboard.moreVibration
70+
private val hapticFeedback by prefs.keyboard.hapticFeedback
7171

7272
var popupActionListener: PopupActionListener? = null
7373

@@ -158,7 +158,7 @@ abstract class BaseKeyboard(
158158
is ReturnKey -> InputFeedbacks.SoundEffect.Return
159159
else -> InputFeedbacks.SoundEffect.Standard
160160
}
161-
val vibration: ((view: View) -> Unit)? = if (moreVibration) { view ->
161+
val vibration: ((view: View) -> Unit)? = if (hapticFeedback) { view ->
162162
InputFeedbacks.hapticFeedback(view)
163163
} else null
164164
if (def is SpaceKey) {
@@ -223,7 +223,7 @@ abstract class BaseKeyboard(
223223
}
224224
is KeyDef.Behavior.Repeat -> {
225225
repeatEnabled = true
226-
onRepeatListener = if (moreVibration && def is BackspaceKey) { view ->
226+
onRepeatListener = if (hapticFeedback && def is BackspaceKey) { view ->
227227
onAction(it.action)
228228
InputFeedbacks.hapticFeedback(view)
229229
} else { _ -> onAction(it.action) }

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,5 +283,5 @@
283283
<string name="restart_fcitx_instance_confirm">Fcitx instance will be destroyed and reinitialized. Proceed?</string>
284284
<string name="ignore_system_window_insets">Ignore system WindowInsets</string>
285285
<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>
287287
</resources>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy