mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
do not close filechooser on long item click if nothing is selected
This commit is contained in:
parent
605b5f12d5
commit
9fdfd7a5ab
1 changed files with 11 additions and 3 deletions
|
@ -1527,16 +1527,24 @@ public class FileChooserActivity extends Activity {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean hasData = false;
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
if(returnPath != null)
|
if (returnPath != null) {
|
||||||
intent.putExtra(_FolderPath, returnPath);
|
intent.putExtra(_FolderPath, returnPath);
|
||||||
|
hasData = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (files != null) {
|
if (files != null) {
|
||||||
intent.putExtra(_Results, files);
|
intent.putExtra(_Results, files);
|
||||||
|
hasData = true;
|
||||||
} else {
|
} else {
|
||||||
intent.putExtra(_Results, new ArrayList<IFile>());
|
intent.putExtra(_Results, new ArrayList<IFile>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!hasData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// return flags for further use (in case the caller needs)
|
// return flags for further use (in case the caller needs)
|
||||||
intent.putExtra(_FilterMode, mFileProvider.getFilterMode());
|
intent.putExtra(_FilterMode, mFileProvider.getFilterMode());
|
||||||
intent.putExtra(_SaveDialog, mIsSaveDialog);
|
intent.putExtra(_SaveDialog, mIsSaveDialog);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue