mirror of
https://gitee.com/openharmony/applications_mms
synced 2025-02-06 08:47:23 +00:00
crash of id and setConversationCheckAll
Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
parent
c36d6a01e2
commit
eb4d7cf404
@ -136,7 +136,6 @@ export default class ConversationListController {
|
||||
delItem: number;
|
||||
// conversation list adapters
|
||||
conversationListDataSource: ConversationListDataSource = new ConversationListDataSource();
|
||||
private checkedStatus: Set<number> = new Set<number>();
|
||||
|
||||
static getInstance() {
|
||||
if (ConversationCtrl == null) {
|
||||
@ -228,9 +227,7 @@ export default class ConversationListController {
|
||||
this.isMultipleSelectState = true;
|
||||
}
|
||||
if (this.messageList[index].isCbChecked != oldStates && this.messageList[index].isCbChecked == true) {
|
||||
this.conversationSelectedNumber = 1;
|
||||
this.checkedStatus.clear();
|
||||
this.checkedStatus.add(index);
|
||||
this.conversationSelectedNumber ++;
|
||||
}
|
||||
this.conversationListDataSource.notifyDataChange(index);
|
||||
this.setConversationCheckAll(common.int.CHECKBOX_SELECT_UNKNOWN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user