Skip to content

Commit f174c62

Browse files
committed
2 parents c1af432 + 93768b1 commit f174c62

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can read the docs below or [The official detailed tutorial](https://baliofvf
2828

2929
```
3030
dependencies {
31-
implementation 'com.github.BalioFVFX:Android-Simple-File-Explorer-Library:2.0.2'
31+
implementation 'com.github.BalioFVFX:Android-Simple-File-Explorer-Library:2.0.3'
3232
}
3333
```
3434

@@ -39,9 +39,17 @@ You can read the docs below or [The official detailed tutorial](https://baliofvf
3939
<br/>
4040
#### Showing the file explorer
4141
```
42-
Intent intent = new Intent(CONTEXT, SimpleFileExplorerActivity.
42+
Intent intent = new Intent(CONTEXT, SimpleFileExplorerActivity);
4343
startActivityForResult(intent, REQUEST_CODE);
4444
```
45+
#### Disabling the select button for directories
46+
```
47+
Intent intent = new Intent(CONTEXT, SimpleFileExplorerActivity);
48+
intent.putExtra(SimpleFileExplorerActivity.ENABLE_DIRECTORY_SELECT_KEY, false);
49+
startActivityForResult(intent, REQUEST_CODE);
50+
```
51+
##### Note: By default you can select directories, however you may want to disable this functionality.
52+
4553
#### Getting the selected file absolute path
4654
##### Note: Your activity must override the onActivityResult(); method.
4755

0 commit comments

Comments
 (0)