Refactoring

This commit is contained in:
M66B 2020-10-17 20:00:54 +02:00
parent bb7d590da3
commit cf0a2582df
3 changed files with 3 additions and 3 deletions

View File

@ -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()));

View File

@ -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()));

View File

@ -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));
} }