Clicking on the currently selected file accepts it.
This commit is contained in:
parent
34b3398b26
commit
43cba542b7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user