mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Displays desc, categories and license, but desc and cats are wrong
This commit is contained in:
		
							parent
							
								
									29e5ba3934
								
							
						
					
					
						commit
						916141287f
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		|  | @ -262,6 +262,21 @@ public class MediaDetailFragment extends Fragment { | |||
|                     if(bitmap.hasAlpha()) { | ||||
|                         image.setBackgroundResource(android.R.color.white); | ||||
|                     } | ||||
| 
 | ||||
|                     // Fill some fields | ||||
|                     desc.setText(prettyDescription(media)); | ||||
|                     license.setText(prettyLicense(media)); | ||||
| 
 | ||||
|                     categoryNames.removeAll(categoryNames); | ||||
|                     categoryNames.addAll(media.getCategories()); | ||||
| 
 | ||||
|                     categoriesLoaded = true; | ||||
|                     categoriesPresent = (categoryNames.size() > 0); | ||||
|                     if (!categoriesPresent) { | ||||
|                         // Stick in a filler element. | ||||
|                         categoryNames.add(getString(R.string.detail_panel_cats_none)); | ||||
|                     } | ||||
|                     rebuildCatList(); | ||||
|                 } | ||||
| 
 | ||||
|                 public void onLoadingCancelled(String s, View view) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan