Revert the suggestion update delay to the original value (100msec) for phones.
This is actually a follow-up to I385f9eb2 bug: 4361287 Change-Id: I4c4a0a96a7fa28f4f96dd984453d2c9f3fa7d6c2main
parent
4054458575
commit
9b2192bfd2
|
@ -37,8 +37,7 @@
|
||||||
<bool name="config_use_spacebar_language_switcher">false</bool>
|
<bool name="config_use_spacebar_language_switcher">false</bool>
|
||||||
<!-- Showing mini keyboard, just above the touched point if true, aligned to the key if false -->
|
<!-- Showing mini keyboard, just above the touched point if true, aligned to the key if false -->
|
||||||
<bool name="config_show_mini_keyboard_at_touched_point">true</bool>
|
<bool name="config_show_mini_keyboard_at_touched_point">true</bool>
|
||||||
<!-- The language is never displayed if == 0, always displayed if < 0 -->
|
<integer name="config_delay_update_suggestions">180</integer>
|
||||||
<integer name="config_delay_before_fadeout_language_on_spacebar">1200</integer>
|
|
||||||
<!-- This configuration is the index of the array {@link KeyboardSwitcher.KEYBOARD_THEMES}. -->
|
<!-- This configuration is the index of the array {@link KeyboardSwitcher.KEYBOARD_THEMES}. -->
|
||||||
<string name="config_default_keyboard_theme_id" translatable="false">5</string>
|
<string name="config_default_keyboard_theme_id" translatable="false">5</string>
|
||||||
<string name="config_text_size_of_language_on_spacebar" translatable="false">medium</string>
|
<string name="config_text_size_of_language_on_spacebar" translatable="false">medium</string>
|
||||||
|
|
|
@ -50,6 +50,9 @@
|
||||||
<bool name="config_show_mini_keyboard_at_touched_point">false</bool>
|
<bool name="config_show_mini_keyboard_at_touched_point">false</bool>
|
||||||
<!-- The language is never displayed if == 0, always displayed if < 0 -->
|
<!-- The language is never displayed if == 0, always displayed if < 0 -->
|
||||||
<integer name="config_delay_before_fadeout_language_on_spacebar">1200</integer>
|
<integer name="config_delay_before_fadeout_language_on_spacebar">1200</integer>
|
||||||
|
<integer name="config_delay_update_suggestions">100</integer>
|
||||||
|
<integer name="config_delay_update_old_suggestions">300</integer>
|
||||||
|
<integer name="config_delay_update_shift_state">100</integer>
|
||||||
<integer name="config_duration_of_fadeout_language_on_spacebar">50</integer>
|
<integer name="config_duration_of_fadeout_language_on_spacebar">50</integer>
|
||||||
<integer name="config_final_fadeout_percentage_of_language_on_spacebar">50</integer>
|
<integer name="config_final_fadeout_percentage_of_language_on_spacebar">50</integer>
|
||||||
<integer name="config_delay_before_preview">0</integer>
|
<integer name="config_delay_before_preview">0</integer>
|
||||||
|
|
|
@ -110,9 +110,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
*/
|
*/
|
||||||
public static final String IME_OPTION_NO_SETTINGS_KEY = "noSettingsKey";
|
public static final String IME_OPTION_NO_SETTINGS_KEY = "noSettingsKey";
|
||||||
|
|
||||||
private static final int DELAY_UPDATE_SUGGESTIONS = 180;
|
|
||||||
private static final int DELAY_UPDATE_OLD_SUGGESTIONS = 300;
|
|
||||||
private static final int DELAY_UPDATE_SHIFT_STATE = 100;
|
|
||||||
private static final int EXTENDED_TOUCHABLE_REGION_HEIGHT = 100;
|
private static final int EXTENDED_TOUCHABLE_REGION_HEIGHT = 100;
|
||||||
|
|
||||||
// How many continuous deletes at which to start deleting at a higher speed.
|
// How many continuous deletes at which to start deleting at a higher speed.
|
||||||
|
@ -190,6 +187,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
private boolean mConfigEnableShowSubtypeSettings;
|
private boolean mConfigEnableShowSubtypeSettings;
|
||||||
private boolean mConfigSwipeDownDismissKeyboardEnabled;
|
private boolean mConfigSwipeDownDismissKeyboardEnabled;
|
||||||
private int mConfigDelayBeforeFadeoutLanguageOnSpacebar;
|
private int mConfigDelayBeforeFadeoutLanguageOnSpacebar;
|
||||||
|
private int mConfigDelayUpdateSuggestions;
|
||||||
|
private int mConfigDelayUpdateOldSuggestions;
|
||||||
|
private int mConfigDelayUpdateShiftState;
|
||||||
private int mConfigDurationOfFadeoutLanguageOnSpacebar;
|
private int mConfigDurationOfFadeoutLanguageOnSpacebar;
|
||||||
private float mConfigFinalFadeoutFactorOfLanguageOnSpacebar;
|
private float mConfigFinalFadeoutFactorOfLanguageOnSpacebar;
|
||||||
private long mConfigDoubleSpacesTurnIntoPeriodTimeout;
|
private long mConfigDoubleSpacesTurnIntoPeriodTimeout;
|
||||||
|
@ -310,7 +310,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
|
|
||||||
public void postUpdateSuggestions() {
|
public void postUpdateSuggestions() {
|
||||||
removeMessages(MSG_UPDATE_SUGGESTIONS);
|
removeMessages(MSG_UPDATE_SUGGESTIONS);
|
||||||
sendMessageDelayed(obtainMessage(MSG_UPDATE_SUGGESTIONS), DELAY_UPDATE_SUGGESTIONS);
|
sendMessageDelayed(obtainMessage(MSG_UPDATE_SUGGESTIONS),
|
||||||
|
mConfigDelayUpdateSuggestions);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cancelUpdateSuggestions() {
|
public void cancelUpdateSuggestions() {
|
||||||
|
@ -324,7 +325,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
public void postUpdateOldSuggestions() {
|
public void postUpdateOldSuggestions() {
|
||||||
removeMessages(MSG_UPDATE_OLD_SUGGESTIONS);
|
removeMessages(MSG_UPDATE_OLD_SUGGESTIONS);
|
||||||
sendMessageDelayed(obtainMessage(MSG_UPDATE_OLD_SUGGESTIONS),
|
sendMessageDelayed(obtainMessage(MSG_UPDATE_OLD_SUGGESTIONS),
|
||||||
DELAY_UPDATE_OLD_SUGGESTIONS);
|
mConfigDelayUpdateOldSuggestions);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cancelUpdateOldSuggestions() {
|
public void cancelUpdateOldSuggestions() {
|
||||||
|
@ -333,7 +334,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
|
|
||||||
public void postUpdateShiftKeyState() {
|
public void postUpdateShiftKeyState() {
|
||||||
removeMessages(MSG_UPDATE_SHIFT_STATE);
|
removeMessages(MSG_UPDATE_SHIFT_STATE);
|
||||||
sendMessageDelayed(obtainMessage(MSG_UPDATE_SHIFT_STATE), DELAY_UPDATE_SHIFT_STATE);
|
sendMessageDelayed(obtainMessage(MSG_UPDATE_SHIFT_STATE), mConfigDelayUpdateShiftState);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cancelUpdateShiftState() {
|
public void cancelUpdateShiftState() {
|
||||||
|
@ -342,7 +343,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
|
|
||||||
public void postUpdateBigramPredictions() {
|
public void postUpdateBigramPredictions() {
|
||||||
removeMessages(MSG_SET_BIGRAM_PREDICTIONS);
|
removeMessages(MSG_SET_BIGRAM_PREDICTIONS);
|
||||||
sendMessageDelayed(obtainMessage(MSG_SET_BIGRAM_PREDICTIONS), DELAY_UPDATE_SUGGESTIONS);
|
sendMessageDelayed(obtainMessage(MSG_SET_BIGRAM_PREDICTIONS),
|
||||||
|
mConfigDelayUpdateSuggestions);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cancelUpdateBigramPredictions() {
|
public void cancelUpdateBigramPredictions() {
|
||||||
|
@ -425,6 +427,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
R.bool.config_swipe_down_dismiss_keyboard_enabled);
|
R.bool.config_swipe_down_dismiss_keyboard_enabled);
|
||||||
mConfigDelayBeforeFadeoutLanguageOnSpacebar = res.getInteger(
|
mConfigDelayBeforeFadeoutLanguageOnSpacebar = res.getInteger(
|
||||||
R.integer.config_delay_before_fadeout_language_on_spacebar);
|
R.integer.config_delay_before_fadeout_language_on_spacebar);
|
||||||
|
mConfigDelayUpdateSuggestions = res.getInteger(R.integer.config_delay_update_suggestions);
|
||||||
|
mConfigDelayUpdateOldSuggestions = res.getInteger(
|
||||||
|
R.integer.config_delay_update_old_suggestions);
|
||||||
|
mConfigDelayUpdateShiftState = res.getInteger(R.integer.config_delay_update_shift_state);
|
||||||
mConfigDurationOfFadeoutLanguageOnSpacebar = res.getInteger(
|
mConfigDurationOfFadeoutLanguageOnSpacebar = res.getInteger(
|
||||||
R.integer.config_duration_of_fadeout_language_on_spacebar);
|
R.integer.config_duration_of_fadeout_language_on_spacebar);
|
||||||
mConfigFinalFadeoutFactorOfLanguageOnSpacebar = res.getInteger(
|
mConfigFinalFadeoutFactorOfLanguageOnSpacebar = res.getInteger(
|
||||||
|
|
Loading…
Reference in New Issue