Search in sources :

Example 1 with FilesAdapter

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

the class FragmentFileList method loadData.

private void loadData() {
    pb.setVisibility(View.VISIBLE);
    files = new FileData(FragmentFileList.this.getContext()).getAllFiles();
    if (files.length > 0) {
        FilesAdapter mAdapter = new FilesAdapter(FragmentFileList.this.getActivity(), files);
        lst.setAdapter(mAdapter);
        txtNoData.setVisibility(View.GONE);
    } else {
        txtNoData.setVisibility(View.VISIBLE);
    }
    pb.setVisibility(View.GONE);
}
Also used : FilesAdapter(org.flyve.mdm.agent.adapter.FilesAdapter) FileData(org.flyve.mdm.agent.data.database.FileData)

Aggregations

FilesAdapter (org.flyve.mdm.agent.adapter.FilesAdapter)1 FileData (org.flyve.mdm.agent.data.database.FileData)1