@Override
 public void onBackPressed() {
   hide();
   ArrayList<String> sources = mThSourceAdapter.getCheckedSources();
   // Log.v("ThManager", "checked sources " + sources.size() );
   mParent.addSources(sources);
   dismiss();
 }
 void updateList() {
   mThSourceAdapter = new ThSourceAdapter(mContext, R.layout.thsource_adapter, mSources);
   File[] files = ThManagerPath.scanThDir();
   // Log.v("ThManager", "source nr " + files.length );
   for (File file : files) {
     String name = file.getName();
     if (!mParent.hasSource(name)) {
       String path = ThManagerPath.getThPath(name);
       // Log.v("ThManager", "source name " + name + " path " + path );
       mThSourceAdapter.addThSource(new ThSource(name, path));
     }
   }
   if (mThSourceAdapter.size() > 0) {
     mList.setAdapter(mThSourceAdapter);
     // mList.invalidate();
   } else {
     hide();
     Toast.makeText(mContext, R.string.no_th_file, Toast.LENGTH_LONG).show();
     dismiss();
   }
 }