Remove sync action request

pull/189/head
Alex Baker 12 years ago
parent 6d01f886f8
commit d9f9d80e9d

@ -97,14 +97,6 @@ public class AstridApiConstants {
*/
public static final String BROADCAST_SEND_CUSTOM_FILTER_CRITERIA = API_PACKAGE + ".SEND_CUSTOM_FILTER_CRITERIA";
// --- Sync Action API
/**
* Action name for broadcast intent requesting a listing of active
* sync actions users can activate from the menu
*/
public static final String BROADCAST_REQUEST_SYNC_ACTIONS = API_PACKAGE + ".REQUEST_SYNC_ACTIONS";
// --- Actions API
/**

@ -147,9 +147,6 @@ public class FilterListFragment extends InjectingListFragment {
// also load sync actions
Activity activity = getActivity();
Intent broadcastIntent = new Intent(AstridApiConstants.BROADCAST_REQUEST_SYNC_ACTIONS);
activity.sendOrderedBroadcast(broadcastIntent, AstridApiConstants.PERMISSION_READ);
if (activity instanceof TaskListActivity) {
((TaskListActivity) activity).setupPopoverWithFilterList(this);
}

@ -641,9 +641,6 @@ public class TaskListFragment extends InjectingListFragment implements OnSortSel
getListView().setSelection(oldListItemSelected);
}
}
// also load sync actions
syncActionHelper.request();
}
protected TaskAdapter createTaskAdapter(TodorooCursor<Task> cursor) {

@ -78,13 +78,6 @@ public class SyncActionHelper {
}
}
public void request() {
Intent broadcastIntent = new Intent(
AstridApiConstants.BROADCAST_REQUEST_SYNC_ACTIONS);
activity.sendOrderedBroadcast(broadcastIntent,
AstridApiConstants.PERMISSION_READ);
}
// --- sync logic
protected void performSyncServiceV2Sync() {

Loading…
Cancel
Save