mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-18 21:10:35 +01:00
add a null check to intent extras at photovideoactivity
This commit is contained in:
parent
c520c8c557
commit
0b352f1bc0
@ -51,7 +51,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
||||
|
||||
private fun checkIntent(savedInstanceState: Bundle? = null) {
|
||||
mUri = intent.data ?: return
|
||||
if (intent.extras.containsKey(REAL_FILE_PATH)) {
|
||||
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
||||
mUri = intent.extras.get(REAL_FILE_PATH) as Uri
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user