@Override
 public void beforeTextChanged(CharSequence s, int start, int count, int after) {
   String name = s.toString().trim();
   if (TextUtil.isEmpty(name)) {
     mBtnNewFileOk.setEnabled(false);
   }
 }
  @Override
  public void afterTextChanged(Editable s) {
    String name = s.toString().trim();
    if (TextUtil.isEmpty(name)) {
      mBtnNewFileOk.setEnabled(false);
      return;
    }
    String path = mCurrentFolder + "/" + name;

    if (!FileUtils.isLegalPath(path) || FileUtils.contansPath(mInfos, path)) {
      mBtnNewFileOk.setEnabled(false);
    } else {
      mNewName = path;
      mBtnNewFileOk.setEnabled(true);
    }
  }