Matisse: 不走onActivityResult方法

Created on 25 Dec 2017  ·  1Comment  ·  Source: zhihu/Matisse

Matisse.from(mActivity)
.choose(MimeType.of(MimeType.JPEG, MimeType.PNG))
.theme(R.style.Matisse_Dracula)
.restrictOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
.captureStrategy(new CaptureStrategy(true,GetPath()))
.capture(true)
.thumbnailScale(0.85f)
.countable(false)
.maxSelectable(1)
.imageEngine(new GlideEngineOwn())
.forResult(106);

这样调了 在fragment中 他不走onActivityResult方法

Most helpful comment

如果你是在Fragment里调用的话,Matisse.from()这个入参传当前Fragment,不要传容器activity,回调还是走onActivityResult方法

>All comments

如果你是在Fragment里调用的话,Matisse.from()这个入参传当前Fragment,不要传容器activity,回调还是走onActivityResult方法

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zybooo1 picture zybooo1  ·  5Comments

Alastor111 picture Alastor111  ·  6Comments

Vector-SMG picture Vector-SMG  ·  3Comments

hugoFather picture hugoFather  ·  5Comments

liuzhanta picture liuzhanta  ·  5Comments