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

@@ -285,12 +285,8 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
if (!attachment.available)
return false;
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);
return true;
}
}