mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	fix #695, fix a glitch with visible extended details, when they shouldnt be
This commit is contained in:
		| @@ -365,6 +365,7 @@ class PhotoFragment : ViewPagerFragment() { | |||||||
|                 text = getMediumExtendedDetails(medium) |                 text = getMediumExtendedDetails(medium) | ||||||
|                 setTextColor(context.config.textColor) |                 setTextColor(context.config.textColor) | ||||||
|                 beVisibleIf(text.isNotEmpty()) |                 beVisibleIf(text.isNotEmpty()) | ||||||
|  |                 alpha = if (!context!!.config.hideExtendedDetails || !isFullscreen) 1f else 0f | ||||||
|                 onGlobalLayout { |                 onGlobalLayout { | ||||||
|                     if (height != 0 && isAdded) { |                     if (height != 0 && isAdded) { | ||||||
|                         y = getExtendedDetailsY(height) |                         y = getExtendedDetailsY(height) | ||||||
|   | |||||||
| @@ -75,12 +75,12 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee | |||||||
|             mIsFragmentVisible = true |             mIsFragmentVisible = true | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         mIsFullscreen = activity!!.window.decorView.systemUiVisibility and View.SYSTEM_UI_FLAG_FULLSCREEN == View.SYSTEM_UI_FLAG_FULLSCREEN | ||||||
|         setupPlayer() |         setupPlayer() | ||||||
|         if (savedInstanceState != null) { |         if (savedInstanceState != null) { | ||||||
|             mCurrTime = savedInstanceState.getInt(PROGRESS) |             mCurrTime = savedInstanceState.getInt(PROGRESS) | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         mIsFullscreen = activity!!.window.decorView.systemUiVisibility and View.SYSTEM_UI_FLAG_FULLSCREEN == View.SYSTEM_UI_FLAG_FULLSCREEN |  | ||||||
|         checkFullscreen() |         checkFullscreen() | ||||||
|         wasInit = true |         wasInit = true | ||||||
|  |  | ||||||
| @@ -465,6 +465,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee | |||||||
|                 text = getMediumExtendedDetails(medium) |                 text = getMediumExtendedDetails(medium) | ||||||
|                 setTextColor(context.config.textColor) |                 setTextColor(context.config.textColor) | ||||||
|                 beVisibleIf(text.isNotEmpty()) |                 beVisibleIf(text.isNotEmpty()) | ||||||
|  |                 alpha = if (!context!!.config.hideExtendedDetails || !mIsFullscreen) 1f else 0f | ||||||
|                 onGlobalLayout { |                 onGlobalLayout { | ||||||
|                     if (height != 0 && isAdded) { |                     if (height != 0 && isAdded) { | ||||||
|                         y = getExtendedDetailsY(height) |                         y = getExtendedDetailsY(height) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user