use of org.odk.collect.android.fragments.dialogs.RankingWidgetDialog in project collect by opendatakit.
the class RankingWidget method onButtonClick.
@Override
public void onButtonClick(int buttonId) {
FormController formController = Collect.getInstance().getFormController();
if (formController != null) {
formController.setIndexWaitingForData(getFormEntryPrompt().getIndex());
}
RankingWidgetDialog rankingWidgetDialog = new RankingWidgetDialog(savedItems == null ? items : savedItems, getFormEntryPrompt().getIndex());
rankingWidgetDialog.show(((FormEntryActivity) getContext()).getSupportFragmentManager(), "RankingDialog");
}
Aggregations