am af69a14c: Use system default vibration pattern
* commit 'af69a14c9684ef6f7a14e60cb635f96db530f6e7': Use system default vibration patternmain
commit
7c1c4f3544
|
@ -56,7 +56,7 @@
|
|||
<item>MODEL=XT907:MANUFACTURER=motorola,30</item>
|
||||
<!-- Sony Xperia Z -->
|
||||
<item>MODEL=C6603:MANUFACTURER=Sony,35</item>
|
||||
<!-- Default value for unknown device -->
|
||||
<item>,20</item>
|
||||
<!-- Default value for unknown device. The negative value means system default. -->
|
||||
<item>,-1</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
|
|
@ -79,6 +79,8 @@
|
|||
|
||||
<!-- Units abbreviation for the duration (milliseconds) [CHAR LIMIT=10] -->
|
||||
<string name="abbreviation_unit_milliseconds"><xliff:g id="milliseconds">%s</xliff:g>ms</string>
|
||||
<!-- The text that represents the current settings value is the system default [CHAR LIMIT=20] -->
|
||||
<string name="settings_system_default">System default</string>
|
||||
|
||||
<!-- Option name for enabling or disabling the use of names of people in Contacts for suggestion and correction [CHAR LIMIT=25] -->
|
||||
<string name="use_contacts_dict">Suggest Contact names</string>
|
||||
|
|
|
@ -367,6 +367,9 @@ public final class SettingsFragment extends InputMethodSettingsFragment
|
|||
|
||||
@Override
|
||||
public String getValueText(final int value) {
|
||||
if (value < 0) {
|
||||
return res.getString(R.string.settings_system_default);
|
||||
}
|
||||
return res.getString(R.string.abbreviation_unit_milliseconds, value);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue