Simplification

This commit is contained in:
M66B
2023-02-03 19:20:54 +01:00
parent fa78c436ea
commit 498c3335c4
4 changed files with 11 additions and 51 deletions

View File

@@ -381,12 +381,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
}
private void onSave(EntityAttachment attachment) {
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast(
new Intent(FragmentBase.ACTION_STORE_ATTACHMENT)
.putExtra("id", attachment.id)
.putExtra("name", Helper.sanitizeFilename(attachment.name))
.putExtra("type", attachment.getMimeType()));
((FragmentBase) parentFragment).onStoreAttachment(attachment);
}
private void onScan(EntityAttachment attachment) {