mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 00:33:55 +01:00 
			
		
		
		
	Improved zoom level and fixed the pins not loading from the center
This commit is contained in:
		
							parent
							
								
									79b25734ad
								
							
						
					
					
						commit
						ac3a2d6f49
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -174,7 +174,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
 | 
				
			||||||
    private Animation fab_close;
 | 
					    private Animation fab_close;
 | 
				
			||||||
    private Animation fab_open;
 | 
					    private Animation fab_open;
 | 
				
			||||||
    private Animation rotate_forward;
 | 
					    private Animation rotate_forward;
 | 
				
			||||||
    private static final float ZOOM_LEVEL = 14f;
 | 
					    private static final float ZOOM_LEVEL = 15f;
 | 
				
			||||||
    private final String NETWORK_INTENT_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
 | 
					    private final String NETWORK_INTENT_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
 | 
				
			||||||
    private BroadcastReceiver broadcastReceiver;
 | 
					    private BroadcastReceiver broadcastReceiver;
 | 
				
			||||||
    private boolean isNetworkErrorOccurred;
 | 
					    private boolean isNetworkErrorOccurred;
 | 
				
			||||||
| 
						 | 
					@ -1441,7 +1441,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
 | 
				
			||||||
        updatedLatLng = curLatLng;
 | 
					        updatedLatLng = curLatLng;
 | 
				
			||||||
        updatedPlaceList = new ArrayList<>(placeList);
 | 
					        updatedPlaceList = new ArrayList<>(placeList);
 | 
				
			||||||
        if (VERSION.SDK_INT >= VERSION_CODES.N) {
 | 
					        if (VERSION.SDK_INT >= VERSION_CODES.N) {
 | 
				
			||||||
            Collections.sort(places, Comparator.comparingDouble(place -> place.getDistanceInDouble(curLatLng)));
 | 
					            Collections.sort(places, Comparator.comparingDouble(place -> place.getDistanceInDouble(getMapFocus())));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        stopQuery = false;
 | 
					        stopQuery = false;
 | 
				
			||||||
        processBatchesSequentially(places, batchSize, updatedPlaceList, curLatLng, 0);
 | 
					        processBatchesSequentially(places, batchSize, updatedPlaceList, curLatLng, 0);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue