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