From c35783fd5392a9272936d9afad13365b7e6ca780 Mon Sep 17 00:00:00 2001 From: Petru Trimbitas Date: Sat, 15 Jun 2013 18:26:59 +0300 Subject: [PATCH] Add refresh to event_list --- res/menu/{main.xml => event_list.xml} | 3 +++ res/values/strings.xml | 1 + src/ro/ieval/unical/EventListActivity.java | 5 ++++- 3 files changed, 8 insertions(+), 1 deletion(-) rename res/menu/{main.xml => event_list.xml} (67%) diff --git a/res/menu/main.xml b/res/menu/event_list.xml similarity index 67% rename from res/menu/main.xml rename to res/menu/event_list.xml index 757150c..8d1346e 100644 --- a/res/menu/main.xml +++ b/res/menu/event_list.xml @@ -6,6 +6,9 @@ android:titleCondensed="NEW"> + diff --git a/res/values/strings.xml b/res/values/strings.xml index 9c1ca70..6c0ba07 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -45,6 +45,7 @@ months year years + Refresh Day diff --git a/src/ro/ieval/unical/EventListActivity.java b/src/ro/ieval/unical/EventListActivity.java index b8c81ab..d864079 100644 --- a/src/ro/ieval/unical/EventListActivity.java +++ b/src/ro/ieval/unical/EventListActivity.java @@ -68,7 +68,7 @@ public class EventListActivity extends Activity { @Override public boolean onCreateOptionsMenu(final Menu menu) { final MenuInflater inflater = getMenuInflater(); - inflater.inflate(R.menu.main, menu); + inflater.inflate(R.menu.event_list, menu); return true; } @@ -79,6 +79,9 @@ public class EventListActivity extends Activity { final Intent i=new Intent(this,AddEventActivity.class); startActivity(i); return true; + case R.id.refresh: + displayEvents(); + return true; default: return false; } -- 2.39.2