浏览代码

Actually use latest Glide version. Minor doc fix

inorichi 7 年之前
父节点
当前提交
ca30fd6088
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 3
      app/build.gradle
  2. 1 2
      app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt

+ 4 - 3
app/build.gradle

@@ -170,9 +170,10 @@ dependencies {
     compile "uy.kohesive.injekt:injekt-core:1.16.1"
 
     // Image library
-    compile 'com.github.bumptech.glide:glide:4.1.1'
-    compile 'com.github.bumptech.glide:okhttp3-integration:4.1.1'
-    kapt 'com.github.bumptech.glide:compiler:4.1.1'
+    final glide_version = '4.2.0'
+    compile "com.github.bumptech.glide:glide:$glide_version"
+    compile "com.github.bumptech.glide:okhttp3-integration:$glide_version"
+    kapt "com.github.bumptech.glide:compiler:$glide_version"
 
     // Transformations
     compile 'jp.wasabeef:glide-transformations:3.0.1'

+ 1 - 2
app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt

@@ -355,8 +355,7 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
      * Retrieves the bitmap of the shortcut with the requested shape and calls [createShortcut] when
      * the resource is available.
      *
-     * @param i The shape index to apply. No transformation is performed if the parameter is not
-     *          provided.
+     * @param i The shape index to apply. Defaults to circle crop transformation.
      */
     private fun createShortcutForShape(i: Int = 0) {
         GlideApp.with(activity)