diff --git a/app/src/main/java/com/mikepenz/fastadapter/app/SampleActivity.java b/app/src/main/java/com/mikepenz/fastadapter/app/SampleActivity.java index f5eaa7627..b3695c000 100755 --- a/app/src/main/java/com/mikepenz/fastadapter/app/SampleActivity.java +++ b/app/src/main/java/com/mikepenz/fastadapter/app/SampleActivity.java @@ -34,7 +34,7 @@ public class SampleActivity extends AppCompatActivity { //save our header or result private Drawer result = null; //save our FastAdapter - private FastAdapter fastAdapter; + private FastAdapter fastAdapter; private UndoHelper undoHelper; @@ -96,10 +96,10 @@ public boolean onItemClick(View view, int position, IDrawerItem drawerItem) { .build(); //create our FastAdapter which will manage everything - fastAdapter = new FastAdapter(); + fastAdapter = new FastAdapter<>(); //create our ItemAdapter which will host our items - final ItemAdapter itemAdapter = new ItemAdapter(); + final ItemAdapter itemAdapter = new ItemAdapter<>(); // undoHelper = new UndoHelper(itemAdapter, new UndoHelper.UndoListener() { @@ -135,7 +135,7 @@ public boolean onLongClick(View v, IAdapter adapter, IItem item, int position) { rv.setAdapter(itemAdapter.wrap(fastAdapter)); //fill with some sample data - List items = new ArrayList<>(); + List items = new ArrayList<>(); for (int i = 1; i <= 100; i++) { items.add(new SampleItem().withName("Test " + i).withIdentifier(100 + i)); }