}
public boolean onOptionsItemSelected(MenuItem item) {
- sendBroadcast (restartTimerIntent);
+ if (restartTimerIntent!=null) sendBroadcast (restartTimerIntent);
AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
int position=-1;
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
- sendBroadcast (restartTimerIntent);
+ if (restartTimerIntent!=null) sendBroadcast (restartTimerIntent);
launchPassList(rows.get(position).id);
}
}
public boolean exportDatabase(){
- sendBroadcast (restartTimerIntent);
+ if (restartTimerIntent!=null) sendBroadcast (restartTimerIntent);
String filename=EXPORT_FILENAME;
try {
CSVWriter writer = new CSVWriter(new FileWriter(filename), ',');
* into the database.
*/
private void importDatabaseFromCSV(String filename){
- sendBroadcast (restartTimerIntent);
+ if (restartTimerIntent!=null) sendBroadcast (restartTimerIntent);
try {
importMessage="";
importedEntries=0;
@Override
public boolean onMenuOpened(int featureId, Menu menu) {
- sendBroadcast (restartTimerIntent);
+ if (restartTimerIntent!=null) sendBroadcast (restartTimerIntent);
if (menu == null) {
return super.onMenuOpened(featureId, menu);
}
public boolean onOptionsItemSelected(MenuItem item) {
- sendBroadcast (restartTimerIntent);
+ if (restartTimerIntent!=null) sendBroadcast (restartTimerIntent);
AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
int position=-1;
if (info==null) {