adding some resources null checks

This commit is contained in:
tibbi 2019-12-02 10:17:43 +01:00
parent 54b8380533
commit b5f72faf2d
2 changed files with 2 additions and 2 deletions

View file

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

View file

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