mirror of
https://github.com/alibaba/Tangram-Android.git
synced 2026-10-16 20:50:42 +08:00
Fix replace card may cause card pos error.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user