attempting to fix the incorrect UPPERCASE at startup again
This commit is contained in:
parent
413d54bd18
commit
a93fdfbefe
2 changed files with 6 additions and 11 deletions
|
|
@ -117,21 +117,10 @@ public class TraditionalT9 extends KeyPadHandler {
|
|||
* last saved mode.
|
||||
*/
|
||||
private void determineTextCase() {
|
||||
String debugString = "";
|
||||
|
||||
mInputMode.defaultTextCase();
|
||||
debugString += "default text case: " + mInputMode.getTextCase() + "; ";
|
||||
|
||||
mInputMode.setTextFieldCase(textField.determineTextCase(inputType));
|
||||
mInputMode.determineNextWordTextCase(textField.isThereText(), textField.getTextBeforeCursor());
|
||||
debugString += "after determine: " + mInputMode.getTextCase() + "; ";
|
||||
|
||||
InputModeValidator.validateTextCase(mInputMode, settings.getTextCase());
|
||||
debugString += "after validation: " + mInputMode.getTextCase();
|
||||
|
||||
if (mInputMode.getTextCase() == InputMode.CASE_UPPER) {
|
||||
Logger.e("determineTextCase", "====> UPPERCASE ENFORCED: " + debugString);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -299,6 +299,12 @@ public class ModePredictive extends InputMode {
|
|||
textCase = autoTextCase.determineNextWordTextCase(isThereText, textCase, textFieldTextCase, textBeforeCursor);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTextCase() {
|
||||
// Filter out the internally used text cases. They have no meaning outside this class.
|
||||
return (textCase == CASE_UPPER || textCase == CASE_LOWER) ? textCase : CASE_CAPITALIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void nextTextCase() {
|
||||
textFieldTextCase = CASE_UNDEFINED; // since it's a user's choice, the default matters no more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue