mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
add a null check to intent extras at photovideoactivity
This commit is contained in:
parent
c520c8c557
commit
0b352f1bc0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue