Skip to content

Commit b5ffc42

Browse files
author
uis
committed
fixed同一个Adapter数据更新未刷新
1 parent 84c9345 commit b5ffc42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stacklayout/src/main/java/com/uis/stackview/StackLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ public void setStackLooper(boolean looper){
122122

123123
public void setAdapter(StackAdapter adapter) {
124124
this.adapter = adapter;
125-
removeAllViewsInLayout();
126125
notifyDataChanged();
127126
}
128127

@@ -131,6 +130,7 @@ public StackAdapter getAdapter(){
131130
}
132131

133132
public void notifyDataChanged(){
133+
removeAllViewsInLayout();
134134
stackHelper.notifyDataChanged();
135135
}
136136

0 commit comments

Comments
 (0)