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

@@ -258,7 +258,10 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
@Override
protected void onExecuted(Bundle args, Integer applied) {
Snackbar.make(view, context.getString(R.string.title_rule_applied, applied), Snackbar.LENGTH_LONG).show();
Snackbar.make(
(View) itemView.getParent(),
context.getString(R.string.title_rule_applied, applied),
Snackbar.LENGTH_LONG).show();
}
@Override