summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/SearchActivity.java
diff options
context:
space:
mode:
authorMason Tang <masontang@google.com>2010-07-26 15:55:36 -0700
committerMason Tang <masontang@google.com>2010-07-27 13:27:32 -0700
commit0948785d981b618447c2c067a6374725b7acefda (patch)
tree5e7452e650e0006568364bccbf6e0f8e5fd0cbf9 /src/com/android/calendar/SearchActivity.java
parent4484b04707d5570a6de4a5a4b228a9bb273bbab7 (diff)
downloadandroid_packages_apps_Calendar-0948785d981b618447c2c067a6374725b7acefda.tar.gz
android_packages_apps_Calendar-0948785d981b618447c2c067a6374725b7acefda.tar.bz2
android_packages_apps_Calendar-0948785d981b618447c2c067a6374725b7acefda.zip
Added search to the action bar, clearing out events with new searches
- Search is now accessible from the menu and the action bar - When searching, the agenda view list is cleared out and "loading..." is displayed Change-Id: If8878671ff2c41075c2fd533b6cb1208d86fc6dd
Diffstat (limited to 'src/com/android/calendar/SearchActivity.java')
-rw-r--r--src/com/android/calendar/SearchActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/calendar/SearchActivity.java b/src/com/android/calendar/SearchActivity.java
index 0ff8e787..2aefe7ee 100644
--- a/src/com/android/calendar/SearchActivity.java
+++ b/src/com/android/calendar/SearchActivity.java
@@ -202,6 +202,8 @@ public class SearchActivity extends Activity implements Navigator {
}
private void search(String searchQuery) {
+ mAgendaListView = new AgendaListView(this);
+ setContentView(mAgendaListView);
mAgendaListView.search(searchQuery, true);
}