mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-29 22:32:59 +00:00 
			
		
		
		
	Fix header crash in History List view (#12214)
* Adapt header handling changes from other recyclerview adapters to fix issue #4475 in StatisticsPlaylistFragment * Remove unneeded LayoutInflater * Revert "Remove unneeded LayoutInflater" This reverts commitab73dc1e72. * Revert "Adapt header handling changes from other recyclerview adapters to fix issue #4475 in StatisticsPlaylistFragment" This reverts commit2abe71cc98. * Remove header animation causing view recycling issue
This commit is contained in:
		| @@ -194,9 +194,6 @@ public abstract class BaseLocalListFragment<I, N> extends BaseStateFragment<I> | |||||||
|         if (itemsList != null) { |         if (itemsList != null) { | ||||||
|             animateHideRecyclerViewAllowingScrolling(itemsList); |             animateHideRecyclerViewAllowingScrolling(itemsList); | ||||||
|         } |         } | ||||||
|         if (headerRootBinding != null) { |  | ||||||
|             animate(headerRootBinding.getRoot(), false, 200); |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
| @@ -205,9 +202,6 @@ public abstract class BaseLocalListFragment<I, N> extends BaseStateFragment<I> | |||||||
|         if (itemsList != null) { |         if (itemsList != null) { | ||||||
|             animate(itemsList, true, 200); |             animate(itemsList, true, 200); | ||||||
|         } |         } | ||||||
|         if (headerRootBinding != null) { |  | ||||||
|             animate(headerRootBinding.getRoot(), true, 200); |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
| @@ -253,9 +247,6 @@ public abstract class BaseLocalListFragment<I, N> extends BaseStateFragment<I> | |||||||
|         if (itemsList != null) { |         if (itemsList != null) { | ||||||
|             animateHideRecyclerViewAllowingScrolling(itemsList); |             animateHideRecyclerViewAllowingScrolling(itemsList); | ||||||
|         } |         } | ||||||
|         if (headerRootBinding != null) { |  | ||||||
|             animate(headerRootBinding.getRoot(), false, 200); |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 j-haldane
					j-haldane