mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 08:18:00 +01:00
adding some resources null checks
This commit is contained in:
parent
54b8380533
commit
b5f72faf2d
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() && context != null) {
|
||||
if (mStoredShowExtendedDetails && isVisible() && context != null && resources != 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() && context != null) {
|
||||
if (mStoredShowExtendedDetails && isVisible() && context != null && resources != null) {
|
||||
animate().y(getExtendedDetailsY(height))
|
||||
|
||||
if (mStoredHideExtendedDetails) {
|
||||
|
|
Loading…
Reference in a new issue