use of org.geometerplus.fbreader.fbreader.options.CancelMenuHelper in project FBReaderJ by geometer.
the class CancelActivity method onStart.
@Override
protected void onStart() {
super.onStart();
// we use this local variable to be sure collection is not null inside the runnable
final BookCollectionShadow collection = new BookCollectionShadow();
myCollection = collection;
collection.bindToService(this, new Runnable() {
public void run() {
final ActionListAdapter adapter = new ActionListAdapter(new CancelMenuHelper().getActionsList(collection));
setListAdapter(adapter);
getListView().setOnItemClickListener(adapter);
}
});
}
Aggregations