From 6088da84213e575a31dfa0416ee531cc4a0b5ea7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 15 May 2019 15:01:17 +0200 Subject: [PATCH] fix opening third party intents --- .../simplemobiletools/gallery/pro/fragments/PhotoFragment.kt | 2 +- .../simplemobiletools/gallery/pro/fragments/VideoFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt index ae2c3b998..e63e41893 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt @@ -88,7 +88,7 @@ class PhotoFragment : ViewPagerFragment() { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { mView = (inflater.inflate(R.layout.pager_photo_item, container, false) as ViewGroup) - if (!arguments!!.getBoolean(SHOULD_INIT_FRAGMENT)) { + if (!arguments!!.getBoolean(SHOULD_INIT_FRAGMENT, true)) { return mView } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index e836dc549..11f78f20a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -123,7 +123,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S } mMedium = arguments!!.getSerializable(MEDIUM) as Medium - if (!arguments!!.getBoolean(SHOULD_INIT_FRAGMENT)) { + if (!arguments!!.getBoolean(SHOULD_INIT_FRAGMENT, true)) { return mView }