mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 08:43:52 +01:00 
			
		
		
		
	Fixed unnecessary reloads on onResume
This commit is contained in:
		
							parent
							
								
									8315777318
								
							
						
					
					
						commit
						13a390a860
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -596,7 +596,9 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
 | 
				
			||||||
        registerNetworkReceiver();
 | 
					        registerNetworkReceiver();
 | 
				
			||||||
        if (isResumed() && ((MainActivity) getActivity()).activeFragment == ActiveFragment.NEARBY) {
 | 
					        if (isResumed() && ((MainActivity) getActivity()).activeFragment == ActiveFragment.NEARBY) {
 | 
				
			||||||
            if (locationPermissionsHelper.checkLocationPermission(getActivity())) {
 | 
					            if (locationPermissionsHelper.checkLocationPermission(getActivity())) {
 | 
				
			||||||
                locationPermissionGranted();
 | 
					                if (lastFocusLocation == null && lastKnownLocation == null) {
 | 
				
			||||||
 | 
					                    locationPermissionGranted();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                startMapWithoutPermission();
 | 
					                startMapWithoutPermission();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue