mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Attach snackbar to parent view
This commit is contained in:
@@ -130,7 +130,10 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
|
||||
|
||||
// Check if viewer available
|
||||
if (ris.size() == 0) {
|
||||
Snackbar.make(view, context.getString(R.string.title_no_viewer, attachment.type), Snackbar.LENGTH_LONG).show();
|
||||
Snackbar.make(
|
||||
(View) itemView.getParent(),
|
||||
context.getString(R.string.title_no_viewer, attachment.type),
|
||||
Snackbar.LENGTH_LONG).show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user