|
|
@@ -56,14 +56,17 @@ public class InputService extends InputMethodService implements PasswordClickLis
|
|
|
return fInputView;
|
|
|
}
|
|
|
|
|
|
+ public void sendPassword(String passwordContent) {
|
|
|
+ getCurrentInputConnection().commitText(passwordContent, passwordContent.length());
|
|
|
+ onFinishInput();
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void OnPasswordClicked(File f) {
|
|
|
FileInterfaceFactory.GetFileInterface(this, PasswordPickerFactory.GetPasswordPicker(this, fInputView), f).ReadFile(new OnResponseListener<String>() {
|
|
|
@Override
|
|
|
public void OnResponse(String passwordContent) {
|
|
|
- for (char i: passwordContent.toCharArray()) {
|
|
|
- sendKeyChar(i);
|
|
|
- }
|
|
|
+ sendPassword(passwordContent);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -72,6 +75,5 @@ public class InputService extends InputMethodService implements PasswordClickLis
|
|
|
log.log(Level.SEVERE, msg, e);
|
|
|
}
|
|
|
});
|
|
|
- onFinishInput();
|
|
|
}
|
|
|
}
|