Search in sources :

Example 1 with BlankFormsListViewModel

use of org.odk.collect.android.formmanagement.BlankFormsListViewModel in project collect by opendatakit.

the class AndroidShortcutsActivity method onCreate.

@Override
public void onCreate(Bundle bundle) {
    super.onCreate(bundle);
    DaggerUtils.getComponent(this).inject(this);
    BlankFormsListViewModel blankFormsListViewModel = new ViewModelProvider(this, blankFormsListViewModelFactory).get(BlankFormsListViewModel.class);
    List<BlankForm> forms = blankFormsListViewModel.getForms();
    showFormListDialog(forms);
}
Also used : BlankForm(org.odk.collect.android.formmanagement.BlankFormsListViewModel.BlankForm) BlankFormsListViewModel(org.odk.collect.android.formmanagement.BlankFormsListViewModel) ViewModelProvider(androidx.lifecycle.ViewModelProvider)

Aggregations

ViewModelProvider (androidx.lifecycle.ViewModelProvider)1 BlankFormsListViewModel (org.odk.collect.android.formmanagement.BlankFormsListViewModel)1 BlankForm (org.odk.collect.android.formmanagement.BlankFormsListViewModel.BlankForm)1