From c9d9f33630443edc8c52607d0d1a4c6586737cd4 Mon Sep 17 00:00:00 2001 From: razerdp Date: Mon, 20 Feb 2017 17:26:01 +0800 Subject: [PATCH] =?UTF-8?q?//=20=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=90=8E=E7=82=B9=E5=87=BB=E7=A9=BA=E7=99=BD=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E4=BA=86=E4=B9=8B=E5=89=8D=E7=9A=84=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=BA=8B=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ .../main/java/razerdp/github/com/widget/PhotoContents.java | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index e9d03f8..8998988 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,9 @@ Add the dependency ``` +###Update log + + - 2017/02/20 + + 修复点击后点击空白页面响应了之前的点击事件的问题 + + diff --git a/lib/src/main/java/razerdp/github/com/widget/PhotoContents.java b/lib/src/main/java/razerdp/github/com/widget/PhotoContents.java index 5b58145..81aca6d 100644 --- a/lib/src/main/java/razerdp/github/com/widget/PhotoContents.java +++ b/lib/src/main/java/razerdp/github/com/widget/PhotoContents.java @@ -357,8 +357,12 @@ private void onTouchDown(MotionEvent event) { if (view != null && view.isEnabled()) { updateChildPressState(selectionPosition, true); this.mSelectedPosition = selectionPosition; + } else { + this.mSelectedPosition = INVALID_POSITION; } } + } else { + this.mSelectedPosition = INVALID_POSITION; } }