From 9eca6c0eb262ff01e3886f5a287451e534bb0eac Mon Sep 17 00:00:00 2001 From: JiangJun <2680104782@qq.com> Date: Fri, 20 Aug 2021 17:23:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E3=80=91=EF=BC=9Acodecheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/link/fls/swipestack/SwipeDirectionalView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/link/fls/swipestack/SwipeDirectionalView.java b/library/src/main/java/link/fls/swipestack/SwipeDirectionalView.java index 3c1074e..086550c 100644 --- a/library/src/main/java/link/fls/swipestack/SwipeDirectionalView.java +++ b/library/src/main/java/link/fls/swipestack/SwipeDirectionalView.java @@ -168,7 +168,10 @@ public class SwipeDirectionalView extends StackLayout implements ICardState { removeComponent(component); if (componentList.size() >= mDisplayViewCount) { - addComponent(componentList.get(mDisplayViewCount - 1), 0); + Component childComponent = componentList.get(mDisplayViewCount - 1); + if(childComponent != null && childComponent.getComponentParent() == null) { + addComponent(childComponent, 0); + } } setViewScale(); -- Gitee From b162018181c684bd104a2a298073e97380f08df3 Mon Sep 17 00:00:00 2001 From: JiangJun <2680104782@qq.com> Date: Fri, 20 Aug 2021 17:35:25 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E3=80=91:=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ README.md | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70246f5..e40a521 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.3-SNAPSHOT +- ohos 第二个版本,完整实现了原库的全部 api,codecheck + ## 0.0.2-SNAPSHOT - ohos 第二个版本,完整实现了原库的全部 api,提示信息优化 diff --git a/README.md b/README.md index 520771c..0efeb6b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ allprojects { ```gradle dependencies { - implementation('com.gitee.chinasoft_ohos:SwipeStack:0.0.2-SNAPSHOT') + implementation('com.gitee.chinasoft_ohos:SwipeStack:0.0.3-SNAPSHOT') ...... } ``` @@ -77,6 +77,7 @@ CloudTest代码测试无异常 当前版本demo功能与原组件基本无差异 ## 版本迭代 +- 0.0.3-SNAPSHOT - 0.0.2-SNAPSHOT - 0.0.1-SNAPSHOT -- Gitee From 0fb1c141b8271191f6a705980a3f1628c38cc617 Mon Sep 17 00:00:00 2001 From: JiangJun <2680104782@qq.com> Date: Fri, 20 Aug 2021 17:37:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E3=80=91:=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e40a521..2fb2e5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ## 0.0.3-SNAPSHOT -- ohos 第二个版本,完整实现了原库的全部 api,codecheck +- ohos 第三个版本,完整实现了原库的全部 api,codecheck ## 0.0.2-SNAPSHOT - ohos 第二个版本,完整实现了原库的全部 api,提示信息优化 -- Gitee