Use system default vibration pattern

Bug: 9468462
Change-Id: Ifa46a56873c10888da8eaa2782fe07ef138a141b
This commit is contained in:
Tadashi G. Takaoka 2013-06-18 15:54:37 +09:00
parent 3b5a503ebf
commit af69a14c96
3 changed files with 7 additions and 2 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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);
}
});