Fix chatroom selection

This commit is contained in:
Margaux Clerc 2016-01-11 11:25:05 +01:00
parent 7793fba0e0
commit 2f73b26325
2 changed files with 3 additions and 4 deletions

View file

@ -9,7 +9,7 @@
android:background="@drawable/list_selector">
<CheckBox
android:id="@+id/delete"
android:id="@+id/delete_chatroom"
android:button="@drawable/checkbox"
android:contentDescription="@string/content_description_delete"
android:paddingRight="5dp"

View file

@ -457,7 +457,7 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
TextView date = (TextView) view.findViewById(R.id.date);
TextView displayName = (TextView) view.findViewById(R.id.sipUri);
TextView unreadMessages = (TextView) view.findViewById(R.id.unreadMessages);
CheckBox select = (CheckBox) view.findViewById(R.id.delete);
CheckBox select = (CheckBox) view.findViewById(R.id.delete_chatroom);
ImageView contactPicture = (ImageView) view.findViewById(R.id.contact_picture);
LinphoneChatRoom chatRoom = LinphoneManager.getLc().getChatRoom(address);
@ -525,7 +525,7 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
}
});
if(chatList.isItemChecked(position)) {
enabledDeleteButton(true);
select.setChecked(true);
} else {
select.setChecked(false);
}
@ -534,7 +534,6 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
unreadMessages.setVisibility(View.VISIBLE);
}
}
return view;
}
}