|
|
@ -400,8 +400,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
|
|
|
|
|
|
|
private RecyclerView rvAttachment;
|
|
|
|
private RecyclerView rvAttachment;
|
|
|
|
private CheckBox cbInline;
|
|
|
|
private CheckBox cbInline;
|
|
|
|
private Button btnSaveAttachments;
|
|
|
|
private ImageButton ibSaveAttachments;
|
|
|
|
private Button btnDownloadAttachments;
|
|
|
|
private ImageButton ibDownloadAttachments;
|
|
|
|
private TextView tvNoInternetAttachments;
|
|
|
|
private TextView tvNoInternetAttachments;
|
|
|
|
|
|
|
|
|
|
|
|
private View vSeparator;
|
|
|
|
private View vSeparator;
|
|
|
@ -603,8 +603,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
rvAttachment.setAdapter(adapterAttachment);
|
|
|
|
rvAttachment.setAdapter(adapterAttachment);
|
|
|
|
|
|
|
|
|
|
|
|
cbInline = attachments.findViewById(R.id.cbInline);
|
|
|
|
cbInline = attachments.findViewById(R.id.cbInline);
|
|
|
|
btnSaveAttachments = attachments.findViewById(R.id.btnSaveAttachments);
|
|
|
|
ibSaveAttachments = attachments.findViewById(R.id.ibSaveAttachments);
|
|
|
|
btnDownloadAttachments = attachments.findViewById(R.id.btnDownloadAttachments);
|
|
|
|
ibDownloadAttachments = attachments.findViewById(R.id.ibDownloadAttachments);
|
|
|
|
tvNoInternetAttachments = attachments.findViewById(R.id.tvNoInternetAttachments);
|
|
|
|
tvNoInternetAttachments = attachments.findViewById(R.id.tvNoInternetAttachments);
|
|
|
|
|
|
|
|
|
|
|
|
vSeparator = vsBody.findViewById(R.id.vSeparator);
|
|
|
|
vSeparator = vsBody.findViewById(R.id.vSeparator);
|
|
|
@ -696,8 +696,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
ibPinContact.setOnClickListener(this);
|
|
|
|
ibPinContact.setOnClickListener(this);
|
|
|
|
ibAddContact.setOnClickListener(this);
|
|
|
|
ibAddContact.setOnClickListener(this);
|
|
|
|
|
|
|
|
|
|
|
|
btnSaveAttachments.setOnClickListener(this);
|
|
|
|
ibSaveAttachments.setOnClickListener(this);
|
|
|
|
btnDownloadAttachments.setOnClickListener(this);
|
|
|
|
ibDownloadAttachments.setOnClickListener(this);
|
|
|
|
|
|
|
|
|
|
|
|
ibFull.setOnClickListener(this);
|
|
|
|
ibFull.setOnClickListener(this);
|
|
|
|
ibImages.setOnClickListener(this);
|
|
|
|
ibImages.setOnClickListener(this);
|
|
|
@ -784,8 +784,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
ibPinContact.setOnClickListener(null);
|
|
|
|
ibPinContact.setOnClickListener(null);
|
|
|
|
ibAddContact.setOnClickListener(null);
|
|
|
|
ibAddContact.setOnClickListener(null);
|
|
|
|
|
|
|
|
|
|
|
|
btnSaveAttachments.setOnClickListener(null);
|
|
|
|
ibSaveAttachments.setOnClickListener(null);
|
|
|
|
btnDownloadAttachments.setOnClickListener(null);
|
|
|
|
ibDownloadAttachments.setOnClickListener(null);
|
|
|
|
|
|
|
|
|
|
|
|
ibFull.setOnClickListener(null);
|
|
|
|
ibFull.setOnClickListener(null);
|
|
|
|
ibImages.setOnClickListener(null);
|
|
|
|
ibImages.setOnClickListener(null);
|
|
|
@ -1285,8 +1285,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
clearCalendar();
|
|
|
|
clearCalendar();
|
|
|
|
|
|
|
|
|
|
|
|
cbInline.setVisibility(View.GONE);
|
|
|
|
cbInline.setVisibility(View.GONE);
|
|
|
|
btnSaveAttachments.setVisibility(View.GONE);
|
|
|
|
ibSaveAttachments.setVisibility(View.GONE);
|
|
|
|
btnDownloadAttachments.setVisibility(View.GONE);
|
|
|
|
ibDownloadAttachments.setVisibility(View.GONE);
|
|
|
|
tvNoInternetAttachments.setVisibility(View.GONE);
|
|
|
|
tvNoInternetAttachments.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
|
|
vSeparator.setVisibility(View.GONE);
|
|
|
|
vSeparator.setVisibility(View.GONE);
|
|
|
@ -2346,8 +2346,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
cbInline.setChecked(show_inline);
|
|
|
|
cbInline.setChecked(show_inline);
|
|
|
|
cbInline.setVisibility(has_inline ? View.VISIBLE : View.GONE);
|
|
|
|
cbInline.setVisibility(has_inline ? View.VISIBLE : View.GONE);
|
|
|
|
|
|
|
|
|
|
|
|
btnSaveAttachments.setVisibility(save ? View.VISIBLE : View.GONE);
|
|
|
|
ibSaveAttachments.setVisibility(save ? View.VISIBLE : View.GONE);
|
|
|
|
btnDownloadAttachments.setVisibility(download && suitable ? View.VISIBLE : View.GONE);
|
|
|
|
ibDownloadAttachments.setVisibility(download && suitable ? View.VISIBLE : View.GONE);
|
|
|
|
tvNoInternetAttachments.setVisibility(downloading && !suitable ? View.VISIBLE : View.GONE);
|
|
|
|
tvNoInternetAttachments.setVisibility(downloading && !suitable ? View.VISIBLE : View.GONE);
|
|
|
|
|
|
|
|
|
|
|
|
cbInline.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
cbInline.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
@ -2733,10 +2733,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
onToggleAddresses(message);
|
|
|
|
onToggleAddresses(message);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case R.id.btnSaveAttachments:
|
|
|
|
case R.id.ibSaveAttachments:
|
|
|
|
onSaveAttachments(message);
|
|
|
|
onSaveAttachments(message);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case R.id.btnDownloadAttachments:
|
|
|
|
case R.id.ibDownloadAttachments:
|
|
|
|
onDownloadAttachments(message);
|
|
|
|
onDownloadAttachments(message);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|