|
|
|
@ -142,6 +142,8 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|
|
|
|
/** token for passing a {@link Filter} object through extras */
|
|
|
|
/** token for passing a {@link Filter} object through extras */
|
|
|
|
public static final String TOKEN_FILTER = "filter"; //$NON-NLS-1$
|
|
|
|
public static final String TOKEN_FILTER = "filter"; //$NON-NLS-1$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final String TOKEN_EXTRAS = "extras"; //$NON-NLS-1$
|
|
|
|
|
|
|
|
|
|
|
|
// --- instance variables
|
|
|
|
// --- instance variables
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
@ -217,14 +219,12 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|
|
|
|
Log.e("tla-instantiate", "tla-instantiate", e);
|
|
|
|
Log.e("tla-instantiate", "tla-instantiate", e);
|
|
|
|
newFragment = new TaskListFragment();
|
|
|
|
newFragment = new TaskListFragment();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
newFragment.setExtras(extras);
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
|
|
|
|
args.putBundle(TOKEN_EXTRAS, extras);
|
|
|
|
|
|
|
|
newFragment.setArguments(args);
|
|
|
|
return newFragment;
|
|
|
|
return newFragment;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setExtras(Bundle extras) {
|
|
|
|
|
|
|
|
this.extras = extras;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Container Activity must implement this interface and we ensure that it
|
|
|
|
* Container Activity must implement this interface and we ensure that it
|
|
|
|
* does during the onAttach() callback
|
|
|
|
* does during the onAttach() callback
|
|
|
|
@ -261,6 +261,7 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|
|
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
|
|
DependencyInjectionService.getInstance().inject(this);
|
|
|
|
DependencyInjectionService.getInstance().inject(this);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
extras = getArguments() != null ? getArguments().getBundle(TOKEN_EXTRAS) : null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
|