Attach snackbar to parent view

This commit is contained in:
M66B
2019-06-24 09:49:45 +02:00
parent da0f528798
commit 8c0e81d6df
5 changed files with 31 additions and 9 deletions

View File

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