adding some crashfixes at fullscreen fragments

This commit is contained in:
tibbi 2019-11-22 15:49:02 +01:00
parent 7c6ca035f5
commit 7affe4f6af
2 changed files with 2 additions and 2 deletions

View file

@ -771,7 +771,7 @@ class PhotoFragment : ViewPagerFragment() {
this.mIsFullscreen = isFullscreen this.mIsFullscreen = isFullscreen
mView.apply { mView.apply {
photo_details.apply { photo_details.apply {
if (mStoredShowExtendedDetails && isVisible()) { if (mStoredShowExtendedDetails && isVisible() && context != null) {
animate().y(getExtendedDetailsY(height)) animate().y(getExtendedDetailsY(height))
if (mStoredHideExtendedDetails) { if (mStoredHideExtendedDetails) {

View file

@ -460,7 +460,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
mTimeHolder.animate().alpha(newAlpha).start() mTimeHolder.animate().alpha(newAlpha).start()
mView.video_details.apply { mView.video_details.apply {
if (mStoredShowExtendedDetails && isVisible()) { if (mStoredShowExtendedDetails && isVisible() && context != null) {
animate().y(getExtendedDetailsY(height)) animate().y(getExtendedDetailsY(height))
if (mStoredHideExtendedDetails) { if (mStoredHideExtendedDetails) {