Skip to content

Fix for media not reloading after album change - #874

Open
marcinkunert wants to merge 1 commit into
zhihu:masterfrom
KomtechRadom:fix_album_change
Open

Fix for media not reloading after album change#874
marcinkunert wants to merge 1 commit into
zhihu:masterfrom
KomtechRadom:fix_album_change

Conversation

@marcinkunert

@marcinkunert marcinkunert commented Jan 31, 2022

Copy link
Copy Markdown
Contributor

Fixes #854

@hanliuxin5

Copy link
Copy Markdown
            if (fragment == null) {
                fragment = MediaSelectionFragment.newInstance(album)
                supportFragmentManager
                    .beginTransaction()
                    .replace(R.id.container, fragment!!, MediaSelectionFragment::class.java.simpleName)
                    .commitAllowingStateLoss()
            } else {
                fragment?.loadNewAlbum(album)
            }

What a coincidence!

@Aksx73

Aksx73 commented Mar 9, 2022

Copy link
Copy Markdown

But now image preview does not work, app crashes!!
Image shows up now on changing different folders but app crashes on tapping on image to open it in full screen or on tapping preview button at the bottom.
Any solution?

coopinsumainsdu
coopinsumainsdu approved these changes May 3, 2022
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

Successfully merging this pull request may close these issues.

Image not loading on switch of folder

5 participants