summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2012-02-02 15:19:34 +0100
committerlado <herrlado@gmail.com>2012-02-02 15:19:34 +0100
commitf04b065ab54eea26ec3af3dbcead56b044a410e1 (patch)
tree3cda938b250a4c41d3851cfeb05ada94dbae8c54
parentd0a5b4c9005d094b8b02d4d1bfd30660b00aef47 (diff)
downloadvdr-manager-f04b065ab54eea26ec3af3dbcead56b044a410e1.tar.gz
vdr-manager-f04b065ab54eea26ec3af3dbcead56b044a410e1.tar.bz2
new timer initial
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java
index cc2c431..00535d5 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerListActivity.java
@@ -2,8 +2,11 @@ package de.bjusystems.vdrmanager.gui;
import java.util.Calendar;
+import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import de.bjusystems.vdrmanager.R;
@@ -145,6 +148,10 @@ public class TimerListActivity extends BaseTimerEditActivity<Timer> implements
}
@Override
+ protected boolean refreshOnResume() {
+ return false;
+ }
+ @Override
protected String getWindowTitle() {
return getString(R.string.action_menu_timers);
}
@@ -164,11 +171,43 @@ public class TimerListActivity extends BaseTimerEditActivity<Timer> implements
refresh();
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * de.bjusystems.vdrmanager.gui.BaseActivity#onOptionsItemSelected(android
+ * .view.MenuItem)
+ */
+ public boolean onOptionsItemSelected(final MenuItem item) {
+
+ switch(item.getItemId()){
+ case R.id.timer_menu_add:
+ say("Comming soon...");
+ return true;
+ }
+
+ // switch (item.getItemId()) {
+ // case R.id.epg_menu_search:
+ // startSearchManager();
+ // super.onSearchRequested();
+ // break;
+ // case R.id.epg_menu_times:
+ // intent = new Intent();
+ // /intent.setClass(this, EpgSearchTimesListActivity.class);
+ // startActivity(intent);
+ // break;
+ // }
+ return super.onOptionsItemSelected(item);
+ }
+
public boolean onCreateOptionsMenu(final Menu menu) {
// MenuItem item;
//item = menu.add(MENU_GROUP_NEW_TIMER, MENU_NEW_TIMER, 0, R.string.new_timer);
//item.setIcon(android.R.drawable.ic_menu_add);;
// /item.setAlphabeticShortcut('r');
+
+ final MenuInflater inflater = getMenuInflater();
+ inflater.inflate(R.menu.timer_list_menu, menu);
return super.onCreateOptionsMenu(menu);
}