Fallback to default storage dir when the currentPath doesn't exist.

captchafix
Florens Douwes 11 years ago
parent b3d8ab7aa4
commit 8ebdcc13e0
  1. 5
      Clover/app/src/main/java/org/floens/chan/ui/fragment/FolderPickFragment.java

@ -19,6 +19,7 @@ package org.floens.chan.ui.fragment;
import android.app.DialogFragment;
import android.os.Bundle;
import android.os.Environment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@ -135,6 +136,10 @@ public class FolderPickFragment extends DialogFragment {
listView.setAdapter(adapter);
if (currentPath == null || !currentPath.exists()) {
currentPath = Environment.getExternalStorageDirectory();
}
moveTo(currentPath);
return container;

Loading…
Cancel
Save