Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

切换到其他相册,一片空白,没有显示照片 #864

Open
bsxy000 opened this issue Oct 22, 2021 · 15 comments
Open

切换到其他相册,一片空白,没有显示照片 #864

bsxy000 opened this issue Oct 22, 2021 · 15 comments

Comments

@bsxy000
Copy link

bsxy000 commented Oct 22, 2021

切换到其他文件夹下,一片空白,没有显示照片

@lenganjan
Copy link

see #812

@poplrz2
Copy link

poplrz2 commented Oct 28, 2021

image

image

image

不用谢!

@poplrz2
Copy link

poplrz2 commented Oct 29, 2021

image
image
image
不用谢!

我使用的是依赖方式,你这种操作是只能将Matisse下载到本地再修改?

是的啊,下载源码, 以模块的方式导入到项目里面

image

@Darlun1024
Copy link

修改AlbumMediaCollection 里面的 LOADER_ID 就好了,每个collection都使用单独的LOADER_ID.

@poplrz2
Copy link

poplrz2 commented Dec 17, 2021 via email

@bsxy000
Copy link
Author

bsxy000 commented Dec 17, 2021

修改AlbumMediaCollection 里面的 LOADER_ID 就好了,每个collection都使用单独的LOADER_ID.

你这个修改的前提还是得下载到本地了,如果Author能更新一下这个lib就好了~

@xybCoder
Copy link

xybCoder commented Mar 3, 2022

image

image

image

不用谢!

非常棒

@poplrz2
Copy link

poplrz2 commented Mar 3, 2022 via email

@funcodingdev
Copy link

我这边这样改,预览会崩溃

@Julius-lq
Copy link

image

image

image

不用谢!

very nice

@poplrz2
Copy link

poplrz2 commented Dec 27, 2022 via email

@Coder-HuangBH
Copy link

修改 MatisseActivity
image
image

@poplrz2
Copy link

poplrz2 commented Jun 29, 2023 via email

@ZhuoJunErGe
Copy link

我的处理方式AlbumMediaCollection中加个方法

public void refreshLoad(@nullable Album target, boolean enableCapture) {
Bundle args = new Bundle();
args.putParcelable(ARGS_ALBUM, target);
args.putBoolean(ARGS_ENABLE_CAPTURE, enableCapture);
mLoaderManager.restartLoader(LOADER_ID, args, this);
}

MediaSelectionFragment中加个方法

public void refreshLoad(Album album) {
mAlbumMediaCollection.refreshLoad(album, selectionSpec.capture);
}
MatisseActivity 中onAlbumSelected(Album album) 方法进行处理

if (fragment == null) {
fragment = MediaSelectionFragment.newInstance(album);
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.container, fragment, MediaSelectionFragment.class.getSimpleName())
.commitAllowingStateLoss();
} else {
fragment.refreshLoad(album);

}

完毕

@poplrz2
Copy link

poplrz2 commented Jul 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants