mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Change all returns to true
This commit is contained in:
		
							parent
							
								
									03f3770a76
								
							
						
					
					
						commit
						273e44cbf0
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -117,7 +117,7 @@ public class ContributionsListFragment extends Fragment { | |||
|                     if (ContextCompat.checkSelfPermission(this.getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { | ||||
|                         //See http://stackoverflow.com/questions/33169455/onrequestpermissionsresult-not-being-called-in-dialog-fragment | ||||
|                         requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1); | ||||
|                         return false; | ||||
|                         return true; | ||||
|                     } else { | ||||
|                         controller.startGalleryPick(); | ||||
|                         return true; | ||||
|  | @ -155,17 +155,18 @@ public class ContributionsListFragment extends Fragment { | |||
|                     if (ContextCompat.checkSelfPermission(this.getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { | ||||
|                         //See http://stackoverflow.com/questions/33169455/onrequestpermissionsresult-not-being-called-in-dialog-fragment | ||||
|                         requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2); | ||||
|                         return false; | ||||
|                         return true; | ||||
|                     } else { | ||||
|                         Intent nearbyIntent = new Intent(getActivity(), NearbyActivity.class); | ||||
|                         startActivity(nearbyIntent); | ||||
|                         return true; | ||||
|                     } | ||||
|                 } | ||||
|                 else { | ||||
|                     Intent nearbyIntent = new Intent(getActivity(), NearbyActivity.class); | ||||
|                     startActivity(nearbyIntent); | ||||
|                     return true; | ||||
|                 } | ||||
|                 return true; | ||||
|             case R.id.menu_refresh: | ||||
|                 ((SourceRefresher)getActivity()).refreshSource(); | ||||
|                 return true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan