Fix image problem in chat list
This commit is contained in:
parent
8f26fe7a23
commit
594bc9fbf3
1 changed files with 4 additions and 2 deletions
|
@ -483,6 +483,8 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
|
||||||
|
|
||||||
if(contact != null){
|
if(contact != null){
|
||||||
LinphoneUtils.setImagePictureFromUri(view.getContext(), contactPicture, contact.getPhotoUri(), contact.getThumbnailUri());
|
LinphoneUtils.setImagePictureFromUri(view.getContext(), contactPicture, contact.getPhotoUri(), contact.getThumbnailUri());
|
||||||
|
} else {
|
||||||
|
contactPicture.setImageResource(R.drawable.avatar);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unreadMessagesCount > 0) {
|
if (unreadMessagesCount > 0) {
|
||||||
|
@ -504,12 +506,12 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
|
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
|
||||||
chatList.setItemChecked(position, b);
|
chatList.setItemChecked(position, b);
|
||||||
if(getNbItemsChecked() == getCount()){
|
if (getNbItemsChecked() == getCount()) {
|
||||||
deselectAll.setVisibility(View.VISIBLE);
|
deselectAll.setVisibility(View.VISIBLE);
|
||||||
selectAll.setVisibility(View.GONE);
|
selectAll.setVisibility(View.GONE);
|
||||||
enabledDeleteButton(true);
|
enabledDeleteButton(true);
|
||||||
} else {
|
} else {
|
||||||
if(getNbItemsChecked() == 0){
|
if (getNbItemsChecked() == 0) {
|
||||||
deselectAll.setVisibility(View.GONE);
|
deselectAll.setVisibility(View.GONE);
|
||||||
selectAll.setVisibility(View.VISIBLE);
|
selectAll.setVisibility(View.VISIBLE);
|
||||||
enabledDeleteButton(false);
|
enabledDeleteButton(false);
|
||||||
|
|
Loading…
Reference in a new issue