/**
   * called to update the file contents as the user navigates there phones file system.
   *
   * @param content an ArrayList of the file/folders in the current directory.
   */
  public void updateDirectory(ArrayList<String> content) {
    if (!mDataSource.isEmpty()) mDataSource.clear();

    for (String data : content) mDataSource.add(data);

    mDelegate.notifyDataSetChanged();
  }
  /**
   * called to refresh the file list
   *
   * @param content an ArrayList of the file/folders in the current directory.
   */
  public void setFileList(ArrayList<String> content) {
    if (mDataSource.equals(content)) {
      return;
    }
    if (!mDataSource.isEmpty()) mDataSource.clear();

    mDataSource.addAll(content);

    /*
     * File list have been change,so clear the thumbnail
     */
    mDelegate.clearThumbnail();
    mDelegate.notifyDataSetChanged();
  }