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