mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	convert top level classes to kotlin (#6368)
* Converted welcome activity / pager to kotlin * Removed unused interface * Convert ViewPagerAdapter to kotlin and enforce that all tabs must have a title that comes from strings.xml * Convert OkHttpConnectionFactory and remove an exception class nobody was using * Convert MapController to kotlin along with fixing nullability in a few places
This commit is contained in:
		
							parent
							
								
									65f41beed8
								
							
						
					
					
						commit
						66395b9871
					
				
					 29 changed files with 555 additions and 655 deletions
				
			
		
							
								
								
									
										46
									
								
								app/src/main/java/fr/free/nrw/commons/MapController.kt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								app/src/main/java/fr/free/nrw/commons/MapController.kt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,46 @@ | |||
| package fr.free.nrw.commons | ||||
| 
 | ||||
| import fr.free.nrw.commons.location.LatLng | ||||
| import fr.free.nrw.commons.nearby.Place | ||||
| 
 | ||||
| abstract class MapController { | ||||
|     /** | ||||
|      * We pass this variable as a group of placeList and boundaryCoordinates | ||||
|      */ | ||||
|     inner class NearbyPlacesInfo { | ||||
|         @JvmField | ||||
|         var placeList: List<Place> = emptyList() // List of nearby places | ||||
| 
 | ||||
|         @JvmField | ||||
|         var boundaryCoordinates: Array<LatLng> = emptyArray() // Corners of nearby area | ||||
| 
 | ||||
|         @JvmField | ||||
|         var currentLatLng: LatLng? = null // Current location when this places are populated | ||||
| 
 | ||||
|         @JvmField | ||||
|         var searchLatLng: LatLng? = null // Search location for finding this places | ||||
| 
 | ||||
|         @JvmField | ||||
|         var mediaList: List<Media>? = null // Search location for finding this places | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * We pass this variable as a group of placeList and boundaryCoordinates | ||||
|      */ | ||||
|     inner class ExplorePlacesInfo { | ||||
|         @JvmField | ||||
|         var explorePlaceList: List<Place> = emptyList() // List of nearby places | ||||
| 
 | ||||
|         @JvmField | ||||
|         var boundaryCoordinates: Array<LatLng> = emptyArray() // Corners of nearby area | ||||
| 
 | ||||
|         @JvmField | ||||
|         var currentLatLng: LatLng? = null // Current location when this places are populated | ||||
| 
 | ||||
|         @JvmField | ||||
|         var searchLatLng: LatLng? = null // Search location for finding this places | ||||
| 
 | ||||
|         @JvmField | ||||
|         var mediaList: List<Media> = emptyList() // Search location for finding this places | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Paul Hawke
						Paul Hawke