mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-03 21:30:12 +00:00
add option to also vibrate in dnd mode
This commit is contained in:
parent
d4d3ba16e0
commit
548bf64c9d
6 changed files with 15 additions and 1 deletions
|
@ -45,6 +45,7 @@ public final class PreferencesSettingsFragment extends SubScreenFragment {
|
|||
|
||||
if (!AudioAndHapticFeedbackManager.getInstance().hasVibrator()) {
|
||||
removePreference(Settings.PREF_VIBRATE_ON);
|
||||
removePreference(Settings.PREF_VIBRATE_IN_DND_MODE);
|
||||
removePreference(Settings.PREF_VIBRATION_DURATION_SETTINGS);
|
||||
}
|
||||
|
||||
|
@ -112,6 +113,8 @@ public final class PreferencesSettingsFragment extends SubScreenFragment {
|
|||
final Resources res = getResources();
|
||||
setPreferenceVisible(Settings.PREF_VIBRATION_DURATION_SETTINGS,
|
||||
Settings.readVibrationEnabled(prefs, res));
|
||||
setPreferenceVisible(Settings.PREF_VIBRATE_IN_DND_MODE,
|
||||
Settings.readVibrationEnabled(prefs, res));
|
||||
setPreferenceVisible(Settings.PREF_KEYPRESS_SOUND_VOLUME,
|
||||
Settings.readKeypressSoundEnabled(prefs, res));
|
||||
setPreferenceVisible(Settings.PREF_CLIPBOARD_HISTORY_RETENTION_TIME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue