mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	NullPointerException on screen rotation during exit fix (#5976)
This commit is contained in:
		| @@ -1009,6 +1009,12 @@ public final class VideoDetailFragment | ||||
|     } | ||||
|  | ||||
|     public void updateTabLayoutVisibility() { | ||||
|  | ||||
|         if (binding == null) { | ||||
|             //If binding is null we do not need to and should not do anything with its object(s) | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         if (pageAdapter.getCount() < 2 || binding.viewPager.getVisibility() != View.VISIBLE) { | ||||
|             // hide tab layout if there is only one tab or if the view pager is also hidden | ||||
|             binding.tabLayout.setVisibility(View.GONE); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Saurav Rao
					Saurav Rao