File tree Expand file tree Collapse file tree
java/org/buildmlearn/toolkit/activity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
370370 final Object object = selectedTemplate .deleteItem (TemplateEditor .this , selectedPosition );
371371 selectedPosition = -1 ;
372372 restoreSelectedView ();
373- Snackbar .make (getWindow (). getDecorView ( ),
373+ Snackbar .make (findViewById ( R . id . relative_layout ),
374374 R .string .snackbar_deleted_message ,Snackbar .LENGTH_LONG )
375375 .setAction (R .string .snackbar_undo , new View .OnClickListener () {
376376 @ Override
Original file line number Diff line number Diff line change 11<RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
22 xmlns : fab =" http://schemas.android.com/apk/res-auto"
33 xmlns : tools =" http://schemas.android.com/tools"
4+ android : id =" @+id/relative_layout"
45 android : layout_width =" match_parent"
56 android : layout_height =" match_parent"
67 tools : context =" org.buildmlearn.toolkit.activity.TemplateEditor" >
You can’t perform that action at this time.
0 commit comments