From cfbe29eb1f36153ab4e4772a96d9ee2e3d4d0aa5 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Thu, 2 Mar 2017 09:16:06 +0800 Subject: [PATCH] fixed #720 --- .../twidere/fragment/media/ExternalBrowserPageFragment.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/media/ExternalBrowserPageFragment.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/media/ExternalBrowserPageFragment.kt index d02cf7756..4d99e07c4 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/media/ExternalBrowserPageFragment.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/media/ExternalBrowserPageFragment.kt @@ -26,11 +26,9 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic.main.layout_media_viewer_browser_fragment.* -import kotlinx.android.synthetic.main.layout_media_viewer_texture_video_view.* import org.mariotaku.mediaviewer.library.MediaViewerFragment import org.mariotaku.twidere.R import org.mariotaku.twidere.TwidereConstants.EXTRA_MEDIA -import org.mariotaku.twidere.fragment.media.VideoPageFragment import org.mariotaku.twidere.model.ParcelableMedia class ExternalBrowserPageFragment : MediaViewerFragment() { @@ -48,7 +46,7 @@ class ExternalBrowserPageFragment : MediaViewerFragment() { webSettings.loadsImagesAutomatically = true val media = arguments.getParcelable(EXTRA_MEDIA) ?: throw NullPointerException() webView.loadUrl(if (TextUtils.isEmpty(media.media_url)) media.url else media.media_url) - videoContainer.setAspectRatioSource(VideoPageFragment.MediaAspectRatioSource(media, this)) + webViewContainer.setAspectRatioSource(VideoPageFragment.MediaAspectRatioSource(media, this)) } override fun onResume() {