You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/24 16:47:59 UTC
[11/50] incubator-weex git commit: * [android] hide keyboard before
set return-type
* [android] hide keyboard before set return-type
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/df59b437
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/df59b437
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/df59b437
Branch: refs/heads/test-ci
Commit: df59b43780f9bb9c2f0fa8233e97b6c3952b361a
Parents: aa3ae56
Author: misakuo <fu...@foxmail.com>
Authored: Mon Feb 20 15:40:38 2017 +0800
Committer: misakuo <fu...@foxmail.com>
Committed: Mon Feb 20 15:40:38 2017 +0800
----------------------------------------------------------------------
.../java/com/taobao/weex/ui/component/AbstractEditComponent.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/df59b437/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java
index ff741fc..21063d9 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java
@@ -539,6 +539,9 @@ public abstract class AbstractEditComponent extends WXComponent<WXEditText> {
default:
break;
}
+
+ //remove focus and hide keyboard first, the ImeOptions will take effect when show keyboard next time
+ blur();
getHostView().setImeOptions(mEditorAction);
}