Skip to content

Commit 2ad272a

Browse files
committed
修复文件获取失败的一个BUG
1 parent b1ccd7a commit 2ad272a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibMediaPicker/src/main/java/me/bzcoder/mediapicker/photopicker/PhotoPickUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void onSubscribe(Disposable d) {
3434
}
3535
@Override
3636
public void onNext(Boolean aBoolean) {
37-
Matisse.from(fragment)
37+
Matisse.from(fragment.getActivity())
3838
.choose(config.getPhotoPickerMediaType())
3939
.theme(R.style.Matisse_Zhihu)
4040
.countable(config.isCountable())

0 commit comments

Comments
 (0)