mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
cleanup
This commit is contained in:
parent
6382cc512c
commit
80fa6907e8
1 changed files with 1 additions and 2 deletions
|
@ -42,7 +42,7 @@ public class FileUtils {
|
|||
|
||||
private static boolean accessDenied(IFile file) {
|
||||
if (android.os.Build.VERSION.SDK_INT >= 9) {
|
||||
return file instanceof File && (!((File)file).canExecute() || !((File)file).canRead());
|
||||
return file instanceof File && (!((File)file).canExecute() || !((File)file).canRead());
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -69,7 +69,6 @@ public class FileUtils {
|
|||
} else if (file.isDirectory()) {
|
||||
if (filterMode != IFileProvider.FilterMode.AnyDirectories) {
|
||||
if (file instanceof File && !((File)file).canWrite()) {
|
||||
System.out.println(">> "+file.getName());
|
||||
if (file instanceof ParentFile) {
|
||||
return R.drawable.afc_folder;
|
||||
} else if (accessDenied(file)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue