mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Prevent NPE (#3241)
This commit is contained in:
		
							parent
							
								
									cbd5ee1850
								
							
						
					
					
						commit
						3e5360ae4d
					
				
					 1 changed files with 0 additions and 5 deletions
				
			
		|  | @ -84,11 +84,6 @@ public class NearbyFilterSearchRecyclerViewAdapter | |||
|                 selectedLabels.remove(label); | ||||
|             } else { | ||||
|                 selectedLabels.add(label); | ||||
|                 displayedLabels.remove(label); | ||||
|                 displayedLabels.add(selectedLabels.size()-1, label); | ||||
|                 notifyDataSetChanged(); | ||||
|                 smoothScroller.setTargetPosition(0); | ||||
|                 recyclerView.getLayoutManager().startSmoothScroll(smoothScroller); | ||||
|             } | ||||
|             label.setSelected(!label.isSelected()); | ||||
|             holder.placeTypeLayout.setBackgroundColor(label.isSelected() ? ContextCompat.getColor(context, R.color.divider_grey) : Color.WHITE); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 neslihanturan
						neslihanturan