zhihu / Matisse

:fireworks: A well-designed local image and video selector for Android
Apache License 2.0
12.52k stars 2.06k forks source link

Fix for media not reloading after album change #874

Open marcinkunert opened 2 years ago

marcinkunert commented 2 years ago

Fixes #854

hanliuxin5 commented 2 years ago
            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 commented 2 years ago

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?