Search in sources :

Example 1 with CancelMenuHelper

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);
        }
    });
}
Also used : BookCollectionShadow(org.geometerplus.android.fbreader.libraryService.BookCollectionShadow) CancelMenuHelper(org.geometerplus.fbreader.fbreader.options.CancelMenuHelper)

Aggregations

BookCollectionShadow (org.geometerplus.android.fbreader.libraryService.BookCollectionShadow)1 CancelMenuHelper (org.geometerplus.fbreader.fbreader.options.CancelMenuHelper)1