mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	Fix fast seek arc not going under system ui
This commit is contained in:
		| @@ -580,11 +580,17 @@ public final class Player implements | |||||||
|                             v.getPaddingTop(), |                             v.getPaddingTop(), | ||||||
|                             v.getPaddingRight(), |                             v.getPaddingRight(), | ||||||
|                             v.getPaddingBottom()); |                             v.getPaddingBottom()); | ||||||
|                     binding.fastSeekOverlay.setPadding( |  | ||||||
|                             v.getPaddingLeft(), |                     // If we added padding to the fast seek overlay, too, it would not go under the | ||||||
|                             v.getPaddingTop(), |                     // system ui. Instead we apply negative margins equal to the window insets of | ||||||
|                             v.getPaddingRight(), |                     // the opposite side, so that the view covers all of the player (overflowing on | ||||||
|                             v.getPaddingBottom()); |                     // some sides) and its center coincides with the center of other controls. | ||||||
|  |                     final RelativeLayout.LayoutParams fastSeekParams = (RelativeLayout.LayoutParams) | ||||||
|  |                             binding.fastSeekOverlay.getLayoutParams(); | ||||||
|  |                     fastSeekParams.leftMargin = -v.getPaddingRight(); | ||||||
|  |                     fastSeekParams.topMargin = -v.getPaddingBottom(); | ||||||
|  |                     fastSeekParams.rightMargin = -v.getPaddingLeft(); | ||||||
|  |                     fastSeekParams.bottomMargin = -v.getPaddingTop(); | ||||||
|                 }); |                 }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stypox
					Stypox