Merge pull request #4389 from SeannyM/android-dir-restrict

Android: Allow accessing all folders
This commit is contained in:
Markus Wick 2016-10-26 08:49:27 +02:00 committed by GitHub
commit 838b234317
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public final class FileAdapter extends RecyclerView.Adapter<FileViewHolder> impl
public void upOneLevel()
{
if (!mPath.equals(Environment.getExternalStorageDirectory().getPath()))
if (!mPath.equals("/"))
{
File currentDirectory = new File(mPath);
File parentDirectory = currentDirectory.getParentFile();