Clicking on the currently selected file accepts it.

This commit is contained in:
Xavi Artigas 2012-11-06 17:46:50 +01:00
parent 34b3398b26
commit 43cba542b7

View file

@ -285,6 +285,11 @@ public class FileDialog extends ListActivity {
}).show();
}
} else {
if (selectedFile != null && selectedFile.getPath().equals(file.getPath())) {
getIntent().putExtra(RESULT_PATH, selectedFile.getPath());
setResult(RESULT_OK, getIntent());
finish();
}
selectedFile = file;
l.setItemChecked(position, true);
selectButton.setEnabled(true);