diff --git a/app/build.gradle b/app/build.gradle index d01996f3c..a2a09d4c8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,14 +58,13 @@ androidExtensions { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6' - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.6' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7' - implementation 'androidx.core:core-ktx:1.4.0-alpha01' - implementation 'androidx.appcompat:appcompat:1.3.0-alpha01' - implementation 'androidx.activity:activity-ktx:1.2.0-alpha05' - implementation 'androidx.fragment:fragment-ktx:1.3.0-alpha05' - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0-alpha03' + implementation 'androidx.core:core-ktx:1.5.0-alpha01' + implementation 'androidx.activity:activity-ktx:1.2.0-alpha06' + implementation 'androidx.fragment:fragment-ktx:1.3.0-alpha06' + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0-alpha04' implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta6' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-rc01' implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha03' diff --git a/app/src/main/java/org/koitharu/kotatsu/ui/download/DownloadService.kt b/app/src/main/java/org/koitharu/kotatsu/ui/download/DownloadService.kt index 9d9ccb9e8..e883007a4 100644 --- a/app/src/main/java/org/koitharu/kotatsu/ui/download/DownloadService.kt +++ b/app/src/main/java/org/koitharu/kotatsu/ui/download/DownloadService.kt @@ -120,15 +120,13 @@ class DownloadService : BaseService() { pageIndex, MimeTypeMap.getFileExtensionFromUrl(url) ) - withContext(Dispatchers.Main) { - notification.setProgress( - chapters.size, - pages.size, - chapterIndex, - pageIndex - ) - notification.update() - } + notification.setProgress( + chapters.size, + pages.size, + chapterIndex, + pageIndex + ) + notification.update() } } } diff --git a/build.gradle b/build.gradle index 08e69a267..d50d7c777 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0-alpha10' + classpath 'com.android.tools.build:gradle:4.2.0-alpha01' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8a314251c..a559abbb4 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sat May 30 09:45:56 EEST 2020 +#Sat Jun 13 15:51:48 EEST 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-milestone-1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip