Fixed manual refresh issue

pull/14/head
Sam Bosley 14 years ago
parent cdeaf16ea8
commit f56c2af26d

@ -12,7 +12,6 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.view.Menu;
import android.support.v4.view.MenuItem;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
@ -479,15 +478,15 @@ public class TagViewFragment extends TaskListFragment {
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
public boolean handleOptionsMenuItemSelected(int id, Intent intent) {
// handle my own menus
switch (item.getItemId()) {
switch (id) {
case MENU_REFRESH_ID:
refreshData(true);
return true;
}
return super.onOptionsItemSelected(item);
return super.handleOptionsMenuItemSelected(id, intent);
}
@Override

@ -2,9 +2,9 @@ package com.todoroo.astrid.gtasks;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.Menu;
import android.support.v4.view.MenuItem;
import android.view.MenuInflater;
import com.timsu.astrid.R;
@ -88,9 +88,9 @@ public class GtasksListFragment extends SubtasksListFragment {
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// handle my own menus
switch (item.getItemId()) {
public boolean handleOptionsMenuItemSelected(int id, Intent intent) {
// handle my own menus
switch (id) {
case MENU_REFRESH_ID:
syncService.synchronizeList(list, true, syncActionHelper.syncResultCallback);
return true;
@ -99,7 +99,7 @@ public class GtasksListFragment extends SubtasksListFragment {
return true;
}
return super.onOptionsItemSelected(item);
return super.handleOptionsMenuItemSelected(id, intent);
}
private void clearCompletedTasks() {

Loading…
Cancel
Save