Search in sources :

Example 1 with ApplicationsAdapter

use of org.flyve.mdm.agent.adapter.ApplicationsAdapter in project android-mdm-agent by flyve-mdm.

the class FragmentAppList method loadData.

private void loadData() {
    pb.setVisibility(View.VISIBLE);
    apps = new ApplicationData(FragmentAppList.this.getContext()).getAllApplications();
    if (apps.length > 0) {
        ApplicationsAdapter mAdapter = new ApplicationsAdapter(this.getActivity(), apps, getContext());
        lst.setAdapter(mAdapter);
        txtNoData.setVisibility(View.GONE);
    } else {
        txtNoData.setVisibility(View.VISIBLE);
    }
    pb.setVisibility(View.GONE);
}
Also used : ApplicationData(org.flyve.mdm.agent.data.database.ApplicationData) ApplicationsAdapter(org.flyve.mdm.agent.adapter.ApplicationsAdapter)

Aggregations

ApplicationsAdapter (org.flyve.mdm.agent.adapter.ApplicationsAdapter)1 ApplicationData (org.flyve.mdm.agent.data.database.ApplicationData)1