mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Made a pass through the code to introduce lambdas / method references in the places the Android Studio suggested.
This commit is contained in:
		
							parent
							
								
									3824f31ef9
								
							
						
					
					
						commit
						4796557fb7
					
				
					 25 changed files with 206 additions and 374 deletions
				
			
		|  | @ -351,12 +351,7 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi { | |||
|     @Override | ||||
|     @NonNull | ||||
|     public UploadResult uploadFile(String filename, InputStream file, long dataLength, String pageContents, String editSummary, final ProgressListener progressListener) throws IOException { | ||||
|         ApiResult result = api.upload(filename, file, dataLength, pageContents, editSummary, new in.yuvi.http.fluent.ProgressListener() { | ||||
|             @Override | ||||
|             public void onProgress(long transferred, long total) { | ||||
|                 progressListener.onProgress(transferred, total); | ||||
|             } | ||||
|         }); | ||||
|         ApiResult result = api.upload(filename, file, dataLength, pageContents, editSummary, progressListener::onProgress); | ||||
| 
 | ||||
|         Log.e("WTF", "Result: "+result.toString()); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Paul Hawke
						Paul Hawke