mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Quick Fix
This commit is contained in:
		
							parent
							
								
									ea94ea782b
								
							
						
					
					
						commit
						294f086d07
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -707,11 +707,9 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements | |||
|      */ | ||||
|     private void buildDepictionList(List<IdAndCaptions> idAndCaptions) { | ||||
|         binding.mediaDetailDepictionContainer.removeAllViews(); | ||||
|         String fullCode = Locale.getDefault().getLanguage(); | ||||
|         String locale = fullCode.contains(",") ? fullCode.substring(0, fullCode.indexOf(',')).trim() : fullCode; | ||||
|         for (IdAndCaptions idAndCaption : idAndCaptions) { | ||||
|             binding.mediaDetailDepictionContainer.addView(buildDepictLabel( | ||||
|                     getDepictionCaption(idAndCaption, locale), | ||||
|                     getDepictionCaption(idAndCaption, Locale.getDefault().getLanguage()), | ||||
|                     idAndCaption.getId(), | ||||
|                 binding.mediaDetailDepictionContainer | ||||
|                 )); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Adith
						Adith