mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Two finger gesture: Less code lines
This commit is contained in:
		| @@ -45,12 +45,9 @@ public class CustomBottomSheetBehavior extends BottomSheetBehavior<FrameLayout> | ||||
|         // The interception listens for the child view with the id "fragment_player_holder", | ||||
|         // so the following two-finger gesture will be triggered only for the player view on | ||||
|         // portrait and for the top controls (visible) on landscape. | ||||
|         setSkipCollapsed(event.getPointerCount() == 2); | ||||
|         if (event.getPointerCount() == 2) { | ||||
|             // Skip the collapsed state during pulling | ||||
|             setSkipCollapsed(true); | ||||
|             return super.onInterceptTouchEvent(parent, child, event); | ||||
|         } else { | ||||
|             setSkipCollapsed(false); | ||||
|         } | ||||
|  | ||||
|         // Don't need to do anything if bottomSheet isn't expanded | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 vkay94
					vkay94