From d4413c46fd10f206ddf77f65f983cef0bbd9aab8 Mon Sep 17 00:00:00 2001 From: agk512 Date: Mon, 2 Dec 2013 21:11:56 -0500 Subject: [PATCH] Tap to delete alerts from DB built back in --- src/com/uncc/gameday/activities/Home.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/uncc/gameday/activities/Home.java b/src/com/uncc/gameday/activities/Home.java index 1fa39a6..9039cb4 100644 --- a/src/com/uncc/gameday/activities/Home.java +++ b/src/com/uncc/gameday/activities/Home.java @@ -79,11 +79,12 @@ public class Home extends MenuActivity { new ArrayAdapter(this,android.R.layout.simple_list_item_1, alerts); listView.setAdapter(adapter); - //tap to delete alert from list + //tap to delete alert from list and database listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView parent, View view, int position, long id) { + deleteAlert(alerts.get(position)); alerts.remove(alerts.get(position)); listView.setAdapter(adapter); }