mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-31 11:52:13 +00:00
remove old device-dependent behavior
not updated in 10 years, only few of those are still in use device-specific default key press volume and vibration duration and a workaround for bad touch firmware on Motorola Xoom
This commit is contained in:
parent
fb26eb8e7a
commit
b868b583dd
8 changed files with 10 additions and 288 deletions
|
@ -151,12 +151,12 @@ public final class PreferencesSettingsFragment extends SubScreenFragment {
|
|||
|
||||
@Override
|
||||
public int readValue(final String key) {
|
||||
return Settings.readKeypressVibrationDuration(prefs, res);
|
||||
return Settings.readKeypressVibrationDuration(prefs);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int readDefaultValue(final String key) {
|
||||
return Settings.readDefaultKeypressVibrationDuration(res);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -206,12 +206,12 @@ public final class PreferencesSettingsFragment extends SubScreenFragment {
|
|||
|
||||
@Override
|
||||
public int readValue(final String key) {
|
||||
return getPercentageFromValue(Settings.readKeypressSoundVolume(prefs, res));
|
||||
return getPercentageFromValue(Settings.readKeypressSoundVolume(prefs));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int readDefaultValue(final String key) {
|
||||
return getPercentageFromValue(Settings.readDefaultKeypressSoundVolume(res));
|
||||
return getPercentageFromValue(-1f);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue