You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/18 08:00:24 UTC

[1/2] incubator-weex git commit: * [android] fix redundant input event

Repository: incubator-weex
Updated Branches:
  refs/heads/release-0.16 64dd40bc3 -> 4c494b2b2


* [android] fix redundant input event


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/92032689
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/92032689
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/92032689

Branch: refs/heads/release-0.16
Commit: 92032689e09286adda516ea2df8fec83d680bc40
Parents: 05214a7
Author: misakuo <mi...@apache.org>
Authored: Mon Oct 16 11:23:00 2017 +0800
Committer: misakuo <mi...@apache.org>
Committed: Mon Oct 16 11:23:00 2017 +0800

----------------------------------------------------------------------
 .../com/taobao/weex/ui/component/AbstractEditComponent.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/92032689/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 a8d1963..4ca9d50 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
@@ -221,6 +221,14 @@ public abstract class AbstractEditComponent extends WXComponent<WXEditText> {
 
           mBeforeText = s.toString();
 
+          if (getDomObject() != null && getDomObject().getAttrs() != null) {
+            Object val = getDomObject().getAttrs().get(Constants.Name.VALUE);
+            String valString = WXUtils.getString(val, null);
+            if (mBeforeText != null && mBeforeText.equals(valString)) {
+              return;
+            }
+          }
+
           if (!mIgnoreNextOnInputEvent) {
             fireEvent(Constants.Event.INPUT, s.toString());
           }


[2/2] incubator-weex git commit: * [android] fix redundant input event

Posted by gu...@apache.org.
* [android] fix redundant input event


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/4c494b2b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/4c494b2b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/4c494b2b

Branch: refs/heads/release-0.16
Commit: 4c494b2b2e653db43d2519dc180e7eff1e767997
Parents: 64dd40b 9203268
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 18 16:00:20 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 18 16:00:20 2017 +0800

----------------------------------------------------------------------
 .../com/taobao/weex/ui/component/AbstractEditComponent.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------