Fix replace card may cause card pos error.

This commit is contained in:
MikeAfc
2019-04-18 12:57:04 +08:00
parent 8efbbf0bcf
commit 17bea665fb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ org.gradle.jvmargs=-Xmx1536M
GROUP=com.alibaba.android
ARTIFACT=tangram
VERSION=1
VERSION_NAME=3.4.1
VERSION_NAME=3.4.2
PACKAGING_TYPE=aar
systemProp.compileSdkVersion=26
systemProp.targetSdkVersion=26
@@ -573,7 +573,7 @@ public class PojoGroupBasicAdapter extends GroupBasicAdapter<Card, BaseCell> {
Pair<Range<Integer>, Card> pair = mCards.get(i);
int start = pair.first.getLower();
int end = pair.first.getUpper();
if (end < index) {
if (end <= index) {
//do nothing
newCards.add(pair);
} else if (start <= index && index < end) {
@@ -623,7 +623,7 @@ public class PojoGroupBasicAdapter extends GroupBasicAdapter<Card, BaseCell> {
Pair<Range<Integer>, Card> pair = mCards.get(i);
int start = pair.first.getLower();
int end = pair.first.getUpper();
if (end < index) {
if (end <= index) {
//do nothing
newCards.add(pair);
} else if (start <= index && index < end) {