File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sample/src/main/java/com/afollestad/materialdialogssample Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 8
8
import android .graphics .drawable .ColorDrawable ;
9
9
import android .os .Build ;
10
10
import android .os .Bundle ;
11
+ import android .os .Environment ;
11
12
import android .os .Handler ;
12
13
import android .support .annotation .ColorInt ;
13
14
import android .support .annotation .NonNull ;
14
15
import android .support .annotation .StringRes ;
15
16
import android .support .v4 .app .ActivityCompat ;
16
17
import android .support .v4 .content .ContextCompat ;
18
+ import android .support .v4 .os .EnvironmentCompat ;
17
19
import android .support .v7 .app .AppCompatActivity ;
18
20
import android .text .Editable ;
19
21
import android .text .InputType ;
@@ -587,7 +589,6 @@ public void showFileChooser() {
587
589
return ;
588
590
}
589
591
new FileChooserDialog .Builder (this )
590
- .initialPath ("/sdcard/Download" )
591
592
.show ();
592
593
}
593
594
@@ -605,7 +606,6 @@ public void showFolderChooser() {
605
606
}
606
607
new FolderChooserDialog .Builder (MainActivity .this )
607
608
.chooseButton (R .string .md_choose_label )
608
- .initialPath ("/sdcard/Download" )
609
609
.show ();
610
610
}
611
611
You can’t perform that action at this time.
0 commit comments