mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Use system default vibration pattern
Bug: 9468462 Change-Id: Ifa46a56873c10888da8eaa2782fe07ef138a141b
This commit is contained in:
parent
3b5a503ebf
commit
af69a14c96
@ -56,7 +56,7 @@
|
|||||||
<item>MODEL=XT907:MANUFACTURER=motorola,30</item>
|
<item>MODEL=XT907:MANUFACTURER=motorola,30</item>
|
||||||
<!-- Sony Xperia Z -->
|
<!-- Sony Xperia Z -->
|
||||||
<item>MODEL=C6603:MANUFACTURER=Sony,35</item>
|
<item>MODEL=C6603:MANUFACTURER=Sony,35</item>
|
||||||
<!-- Default value for unknown device -->
|
<!-- Default value for unknown device. The negative value means system default. -->
|
||||||
<item>,20</item>
|
<item>,-1</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -79,6 +79,8 @@
|
|||||||
|
|
||||||
<!-- Units abbreviation for the duration (milliseconds) [CHAR LIMIT=10] -->
|
<!-- Units abbreviation for the duration (milliseconds) [CHAR LIMIT=10] -->
|
||||||
<string name="abbreviation_unit_milliseconds"><xliff:g id="milliseconds">%s</xliff:g>ms</string>
|
<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] -->
|
<!-- 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>
|
<string name="use_contacts_dict">Suggest Contact names</string>
|
||||||
|
@ -367,6 +367,9 @@ public final class SettingsFragment extends InputMethodSettingsFragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getValueText(final int value) {
|
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);
|
return res.getString(R.string.abbreviation_unit_milliseconds, value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user