mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 00:33:55 +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();
 | 
			
		||||
        if (isResumed() && ((MainActivity) getActivity()).activeFragment == ActiveFragment.NEARBY) {
 | 
			
		||||
            if (locationPermissionsHelper.checkLocationPermission(getActivity())) {
 | 
			
		||||
                locationPermissionGranted();
 | 
			
		||||
                if (lastFocusLocation == null && lastKnownLocation == null) {
 | 
			
		||||
                    locationPermissionGranted();
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
                startMapWithoutPermission();
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue