Search in sources :

Example 1 with RankingWidgetDialog

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");
}
Also used : FormController(org.odk.collect.android.javarosawrapper.FormController) RankingWidgetDialog(org.odk.collect.android.fragments.dialogs.RankingWidgetDialog)

Aggregations

RankingWidgetDialog (org.odk.collect.android.fragments.dialogs.RankingWidgetDialog)1 FormController (org.odk.collect.android.javarosawrapper.FormController)1