@Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    L.lifeCycle(2, L.ACTIVITYCREATED, this.toString());

    // now I know getView!
    initAdapter();

    if (savedInstanceState != null) {

      // TODO Spis dat do SharedPreferences
      mIsFavorite = savedInstanceState.getBoolean(C.TAG_BUNDLE_IS_FAVORITE);
      mSortBy = savedInstanceState.getInt(C.TAG_BUNDLE_SORT_BY);
    }

    if (!mIsDatabaseOk) {
      if (mAsyncTaskFragment == null) {
        if (UtilsNet.isConnectingToInternet()) {
          mAsyncTaskFragment = AsyncTaskFragment.newRetainedInstance();
          mAsyncTaskFragment.show(
              mActivity.getSupportFragmentManager(), ConstFragments.TAG_FRAGMENT_ASYNC_TASK);
        } else {
          L.t(mActivity.getString(R.string.error_unknown_host_exception));
        }
      }
    } else {
      initLoader();
    }
  }
  /**
   * Set Movies dataset
   *
   * @param b
   */
  @Override
  public void setData(Boolean b) {
    mAsyncTaskFragment.dismissAllowingStateLoss();
    mAsyncTaskFragment = null;

    /* if the app was first launched, isDatabase() was executed in onCreate() method
       and returned false, now we must inform this fragment that database is OK; next
       launch of app is no problem, because method will return true
    */
    mIsDatabaseOk = true;

    if (b) initLoader();
  }