Search in sources :

Example 1 with OnLongClick

use of butterknife.OnLongClick in project apps-android-wikipedia by wikimedia.

the class OnThisDayPagesViewHolder method showOverflowMenu.

@OnLongClick(R.id.parent)
boolean showOverflowMenu(View anchorView) {
    PageTitle pageTitle = new PageTitle(selectedPage.getTitle(), wiki);
    HistoryEntry entry = new HistoryEntry(pageTitle, isSingleCard ? HistoryEntry.SOURCE_ON_THIS_DAY_CARD : HistoryEntry.SOURCE_ON_THIS_DAY_ACTIVITY);
    itemCallback.onActionLongClick(entry);
    return true;
}
Also used : PageTitle(org.wikipedia.page.PageTitle) HistoryEntry(org.wikipedia.history.HistoryEntry) OnLongClick(butterknife.OnLongClick)

Aggregations

OnLongClick (butterknife.OnLongClick)1 HistoryEntry (org.wikipedia.history.HistoryEntry)1 PageTitle (org.wikipedia.page.PageTitle)1