ギャップ読み込み中にリストの内容が変化した場合に更新範囲がずれていた問題の修正
This commit is contained in:
parent
e0d2e0e300
commit
7eb353b46d
|
@ -37,7 +37,7 @@
|
|||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</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" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
|
|
@ -1981,7 +1981,11 @@ class Column implements StreamReader.Callback {
|
|||
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 ){
|
||||
Utils.showToast( context, true, R.string.column_is_busy );
|
||||
return;
|
||||
|
@ -2314,12 +2318,19 @@ class Column implements StreamReader.Callback {
|
|||
fireShowContent();
|
||||
return;
|
||||
}
|
||||
|
||||
if( list_tmp == null ){
|
||||
fireShowContent();
|
||||
return;
|
||||
}
|
||||
// 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 );
|
||||
|
||||
ColumnViewHolder holder = getViewHolder();
|
||||
|
|
Loading…
Reference in New Issue