Merge pull request #4389 from SeannyM/android-dir-restrict
Android: Allow accessing all folders
This commit is contained in:
commit
838b234317
|
@ -198,7 +198,7 @@ public final class FileAdapter extends RecyclerView.Adapter<FileViewHolder> impl
|
||||||
|
|
||||||
public void upOneLevel()
|
public void upOneLevel()
|
||||||
{
|
{
|
||||||
if (!mPath.equals(Environment.getExternalStorageDirectory().getPath()))
|
if (!mPath.equals("/"))
|
||||||
{
|
{
|
||||||
File currentDirectory = new File(mPath);
|
File currentDirectory = new File(mPath);
|
||||||
File parentDirectory = currentDirectory.getParentFile();
|
File parentDirectory = currentDirectory.getParentFile();
|
||||||
|
|
Loading…
Reference in New Issue