Skip to content

Commit b83e304

Browse files
authored
Merge pull request #15 from zybooo1/fix_browser_single_pick_no_result
Fix browser single pick no result
2 parents bf9c4cb + ed8e8c0 commit b83e304

File tree

11 files changed

+30
-371
lines changed

11 files changed

+30
-371
lines changed

.idea/caches/build_file_checksums.ser

587 Bytes
Binary file not shown.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EssFilePicker.iml

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/app.iml

Lines changed: 0 additions & 160 deletions
This file was deleted.

app/src/main/java/com/ess/essfilepicker/MainActivity.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ public void onScan(View view) {
5555
.start();
5656
}
5757

58+
59+
@OnClick(R.id.button_single_pick)
60+
public void onSinglePick(View view) {
61+
FilePicker
62+
.from(this)
63+
.chooseForBrowser()
64+
.isSingle()
65+
.setFileTypes("pdf")
66+
.requestCode(REQUEST_CODE_CHOOSE)
67+
.start();
68+
}
69+
5870
@OnClick(R.id.button_select_pictures)
5971
public void onSelectPictures(View view){
6072
FilePicker

app/src/main/res/layout/activity_main.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
android:text="按文件类型选择文件"
2525
/>
2626

27+
<Button
28+
android:id="@+id/button_single_pick"
29+
android:layout_width="match_parent"
30+
android:layout_height="wrap_content"
31+
android:text="单选特定文件"
32+
/>
33+
2734
<Button
2835
android:id="@+id/button_select_pictures"
2936
android:layout_width="match_parent"

filePicker.iml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)