@Override
  public void onResume() {
    super.onResume();
    initBroadcastReceiver();

    if (adapter != null) {
      restorePreviouslyChecked();
      restorePreviousFilter();
      browseFilesButtonClick(adapter.getFileType());
    }
  }