mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +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) {
|
private fun checkIntent(savedInstanceState: Bundle? = null) {
|
||||||
mUri = intent.data ?: return
|
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
|
mUri = intent.extras.get(REAL_FILE_PATH) as Uri
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue