ギャップ読み込み中にリストの内容が変化した場合に更新範囲がずれていた問題の修正
This commit is contained in:
parent
e0d2e0e300
commit
7eb353b46d
|
@ -37,7 +37,7 @@
|
||||||
<ConfirmationsSetting value="0" id="Add" />
|
<ConfirmationsSetting value="0" id="Add" />
|
||||||
<ConfirmationsSetting value="0" id="Remove" />
|
<ConfirmationsSetting value="0" id="Remove" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
@ -1981,7 +1981,11 @@ class Column implements StreamReader.Callback {
|
||||||
task.executeOnExecutor( App1.task_executor );
|
task.executeOnExecutor( App1.task_executor );
|
||||||
}
|
}
|
||||||
|
|
||||||
void startGap( final TootGap gap, final int position ){
|
void startGap( final TootGap gap ){
|
||||||
|
if( gap== null ){
|
||||||
|
Utils.showToast( context, true, "gap is null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if( last_task != null ){
|
if( last_task != null ){
|
||||||
Utils.showToast( context, true, R.string.column_is_busy );
|
Utils.showToast( context, true, R.string.column_is_busy );
|
||||||
return;
|
return;
|
||||||
|
@ -2314,12 +2318,19 @@ class Column implements StreamReader.Callback {
|
||||||
fireShowContent();
|
fireShowContent();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( list_tmp == null ){
|
if( list_tmp == null ){
|
||||||
fireShowContent();
|
fireShowContent();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 0個でもギャップを消すために以下の処理を続ける
|
// 0個でもギャップを消すために以下の処理を続ける
|
||||||
|
|
||||||
|
int position = list_data.indexOf( gap );
|
||||||
|
if( position == -1 ){
|
||||||
|
log.d("gap is not found..");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ArrayList< Object > list_new = duplicate_map.filterDuplicate( list_tmp );
|
ArrayList< Object > list_new = duplicate_map.filterDuplicate( list_tmp );
|
||||||
|
|
||||||
ColumnViewHolder holder = getViewHolder();
|
ColumnViewHolder holder = getViewHolder();
|
||||||
|
|
Loading…
Reference in New Issue