mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 22:42:35 +00:00
Clicking on the currently selected file accepts it.
This commit is contained in:
parent
34b3398b26
commit
43cba542b7
1 changed files with 5 additions and 0 deletions
|
@ -285,6 +285,11 @@ public class FileDialog extends ListActivity {
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (selectedFile != null && selectedFile.getPath().equals(file.getPath())) {
|
||||||
|
getIntent().putExtra(RESULT_PATH, selectedFile.getPath());
|
||||||
|
setResult(RESULT_OK, getIntent());
|
||||||
|
finish();
|
||||||
|
}
|
||||||
selectedFile = file;
|
selectedFile = file;
|
||||||
l.setItemChecked(position, true);
|
l.setItemChecked(position, true);
|
||||||
selectButton.setEnabled(true);
|
selectButton.setEnabled(true);
|
||||||
|
|
Loading…
Reference in a new issue