mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-24 16:53:37 +00:00
Refactoring
This commit is contained in:
parent
bb7d590da3
commit
cf0a2582df
3 changed files with 3 additions and 3 deletions
|
@ -257,7 +257,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
|
|||
private void onSave(EntityAttachment attachment) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(
|
||||
new Intent(FragmentMessages.ACTION_STORE_ATTACHMENT)
|
||||
new Intent(FragmentBase.ACTION_STORE_ATTACHMENT)
|
||||
.putExtra("id", attachment.id)
|
||||
.putExtra("name", Helper.sanitizeFilename(attachment.name))
|
||||
.putExtra("type", attachment.getMimeType()));
|
||||
|
|
|
@ -160,7 +160,7 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
|
|||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(
|
||||
new Intent(FragmentMessages.ACTION_STORE_ATTACHMENT)
|
||||
new Intent(FragmentBase.ACTION_STORE_ATTACHMENT)
|
||||
.putExtra("id", attachment.id)
|
||||
.putExtra("name", Helper.sanitizeFilename(attachment.name))
|
||||
.putExtra("type", attachment.getMimeType()));
|
||||
|
|
|
@ -3594,7 +3594,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
private void onSaveAttachments(TupleMessageEx message) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(
|
||||
new Intent(FragmentMessages.ACTION_STORE_ATTACHMENTS)
|
||||
new Intent(FragmentBase.ACTION_STORE_ATTACHMENTS)
|
||||
.putExtra("id", message.id));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue