mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Fix a couple more Rx/context inconsistencies. (#2715)
* Stop storing Context! * Properly contain and dispose of observables. * Add a few more containments of Rx observables.
This commit is contained in:
		
							parent
							
								
									7cb1f56165
								
							
						
					
					
						commit
						f7302d4301
					
				
					 6 changed files with 76 additions and 92 deletions
				
			
		|  | @ -115,11 +115,11 @@ public class UploadPresenter { | |||
|                     List<Description> descriptions) { | ||||
|         Timber.e("Inside handleNext"); | ||||
|         view.showProgressDialog(); | ||||
|         uploadModel.getImageQuality(uploadModel.getCurrentItem(), true) | ||||
|         compositeDisposable.add(uploadModel.getImageQuality(uploadModel.getCurrentItem(), true) | ||||
|                 .subscribeOn(Schedulers.io()) | ||||
|                 .observeOn(AndroidSchedulers.mainThread()) | ||||
|                 .subscribe(imageResult -> handleImage(title, descriptions, imageResult), | ||||
|                         throwable -> Timber.e(throwable, "Error occurred while handling image")); | ||||
|                         throwable -> Timber.e(throwable, "Error occurred while handling image"))); | ||||
|     } | ||||
| 
 | ||||
|     private void handleImage(Title title, List<Description> descriptions, Integer imageResult) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dmitry Brant
						Dmitry Brant