mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Fix many compilation warnings
This commit is contained in:
		| @@ -84,9 +84,6 @@ class BackupCreateService : IntentService(NAME) { | ||||
|         // Create root object | ||||
|         val root = JsonObject() | ||||
|  | ||||
|         // Create information object | ||||
|         val information = JsonObject() | ||||
|  | ||||
|         // Create manga array | ||||
|         val mangaEntries = JsonArray() | ||||
|  | ||||
|   | ||||
| @@ -317,8 +317,8 @@ class BackupRestoreService : Service() { | ||||
|                     manga | ||||
|                 } | ||||
|                 .filter { it.id != null } | ||||
|                 .flatMap { manga -> | ||||
|                     chapterFetchObservable(source, manga, chapters) | ||||
|                 .flatMap { | ||||
|                     chapterFetchObservable(source, it, chapters) | ||||
|                             // Convert to the manga that contains new chapters. | ||||
|                             .map { manga } | ||||
|                 } | ||||
|   | ||||
| @@ -122,7 +122,7 @@ class DownloadService : Service() { | ||||
|                 .subscribeOn(Schedulers.io()) | ||||
|                 .observeOn(AndroidSchedulers.mainThread()) | ||||
|                 .subscribe({ state -> onNetworkStateChanged(state) | ||||
|                 }, { error -> | ||||
|                 }, { _ -> | ||||
|                     toast(R.string.download_queue_error) | ||||
|                     stopSelf() | ||||
|                 }) | ||||
|   | ||||
| @@ -287,7 +287,7 @@ class Downloader(private val context: Context, private val provider: DownloadPro | ||||
|         } | ||||
|  | ||||
|         return pageListObservable | ||||
|                 .doOnNext { pages -> | ||||
|                 .doOnNext { _ -> | ||||
|                     // Delete all temporary (unfinished) files | ||||
|                     tmpDir.listFiles() | ||||
|                             ?.filter { it.name!!.endsWith(".tmp") } | ||||
| @@ -303,7 +303,7 @@ class Downloader(private val context: Context, private val provider: DownloadPro | ||||
|                 // Do when page is downloaded. | ||||
|                 .doOnNext { notifier.onProgressChange(download, queue) } | ||||
|                 .toList() | ||||
|                 .map { pages -> download } | ||||
|                 .map { _ -> download } | ||||
|                 // Do after download completes | ||||
|                 .doOnNext { ensureSuccessfulDownload(download, tmpDir, chapterDirname) } | ||||
|                 // If the page list threw, it will resume here | ||||
|   | ||||
		Reference in New Issue
	
	Block a user