Commit 0deb7661 authored by Jino Basilio's avatar Jino Basilio

fix for nullpointer adapter

parent 155cd3a7
...@@ -29,7 +29,7 @@ public class Kitchen extends Activity { ...@@ -29,7 +29,7 @@ public class Kitchen extends Activity {
setListData(); setListData();
Resources res =getResources(); Resources res =getResources();
lv= ( ListView )findViewById( R.id.list ); // List defined in XML ( See Below ) lv= ( ListView )findViewById( R.id.listKitchen ); // List defined in XML ( See Below )
/**************** Create Custom Adapter *********/ /**************** Create Custom Adapter *********/
adapter=new KitchenAdapter( CustomListView, CustomListViewValuesArr,res ); adapter=new KitchenAdapter( CustomListView, CustomListViewValuesArr,res );
...@@ -81,4 +81,4 @@ public class Kitchen extends Activity { ...@@ -81,4 +81,4 @@ public class Kitchen extends Activity {
CustomListViewValuesArr.remove(mPosition); CustomListViewValuesArr.remove(mPosition);
adapter.notifyDataSetChanged(); adapter.notifyDataSetChanged();
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment