public void clearAdapterData(String requestFrom){
  if (mFiles != null) {
    mFiles.clear();
    if (requestFrom.equals("onBrowseUp")) {
      notifyDataSetChanged();
    }
  }
}

public void clearAdapterData ( String requestFrom ) { if ( mFiles != null ) { mFiles . clear ( ) ; if ( requestFrom . equals ( "onBrowseUp" ) ) { notifyDataSetChanged ( ) ; } } }
clear current adapter data
