Reordered things in the TaskAdapter constructor to catch random rare exceptions thrown by fragment.getResources()

pull/14/head
Sam Bosley 12 years ago
parent df9f6d515b
commit 0fc7ca851d

@ -227,14 +227,13 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
super(ContextManager.getContext(), c, autoRequery);
DependencyInjectionService.getInstance().inject(this);
inflater = (LayoutInflater) fragment.getActivity().getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
this.query = query;
this.resource = resource;
this.fragment = fragment;
this.resources = fragment.getResources();
this.onCompletedTaskListener = onCompletedTaskListener;
inflater = (LayoutInflater) fragment.getActivity().getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
fontSize = Preferences.getIntegerFromString(R.string.p_fontSize, 18);
paint = new Paint();

Loading…
Cancel
Save