[Android] Simplify conditional statement within DirectoryActivity.java. This is already checked through the allowFile variable. So if that is true, then it's sensible to assume this is true as well.

This commit is contained in:
Lioncash 2013-09-27 09:38:19 -04:00
parent 4718bc63af
commit 0d869aa768

View File

@ -222,8 +222,7 @@ public class DirectoryActivity extends Activity implements
boolean allowFile = file.isDirectory() || (filterPath(path) && !isDirectoryTarget);
if (allowFile)
adapter.add(new FileWrapper(file, FileWrapper.FILE,
file.isDirectory() || true));
adapter.add(new FileWrapper(file, FileWrapper.FILE, true));
}
}