Scroll appropriately when expanding versions
This commit is contained in:
		
							parent
							
								
									dcf41bcdf2
								
							
						
					
					
						commit
						b72c418f11
					
				@ -145,6 +145,9 @@ public class AppDetailsRecyclerViewAdapter
 | 
			
		||||
        if (showVersions) {
 | 
			
		||||
            items.addAll(startIndex, versions);
 | 
			
		||||
            notifyItemRangeInserted(startIndex, versions.size());
 | 
			
		||||
            if (recyclerView != null) {
 | 
			
		||||
                ((LinearLayoutManager) recyclerView.getLayoutManager()).scrollToPositionWithOffset(startIndex - 1, 0);
 | 
			
		||||
            }
 | 
			
		||||
        } else if (itemsWereRemoved) {
 | 
			
		||||
            notifyItemRangeRemoved(startIndex, versions.size());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user