adding some crashfixes at fullscreen fragments
This commit is contained in:
parent
7c6ca035f5
commit
7affe4f6af
2 changed files with 2 additions and 2 deletions
|
@ -771,7 +771,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
this.mIsFullscreen = isFullscreen
|
||||
mView.apply {
|
||||
photo_details.apply {
|
||||
if (mStoredShowExtendedDetails && isVisible()) {
|
||||
if (mStoredShowExtendedDetails && isVisible() && context != null) {
|
||||
animate().y(getExtendedDetailsY(height))
|
||||
|
||||
if (mStoredHideExtendedDetails) {
|
||||
|
|
|
@ -460,7 +460,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
|||
|
||||
mTimeHolder.animate().alpha(newAlpha).start()
|
||||
mView.video_details.apply {
|
||||
if (mStoredShowExtendedDetails && isVisible()) {
|
||||
if (mStoredShowExtendedDetails && isVisible() && context != null) {
|
||||
animate().y(getExtendedDetailsY(height))
|
||||
|
||||
if (mStoredHideExtendedDetails) {
|
||||
|
|
Loading…
Reference in a new issue