You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
--- +++ @@ -72,6 +72,11 @@
dependencies {
kapt 'com.github.bumptech.glide:compiler:4.2.0'
}
+ ```+ Note that you must also include the ``kotlin-kapt`` plugin in your ``build.gradle`` file:++ ```groovy+ apply plugin: 'kotlin-kapt'
```
To use ``kapt``, see the [official documentation][14].
--- +++ @@ -197,7 +197,7 @@
#### UncaughtThrowableStrategy
-When loading a bitmap, if an exception happens (e.g. `OutOfMemoryException`), glide will use a `GlideExecutor.UncaughtThrowableStrategy`. +When loading a bitmap, if an exception happens (e.g. `OutOfMemoryException`), Glide will use a `GlideExecutor.UncaughtThrowableStrategy`.
The default strategy is to log the exception in the device logcat. The strategy is customizable since glide 4.2.0. It can be passed to a disk executor and/or a resize executor:
```java
@@ -208,6 +208,20 @@
final UncaughtThrowableStrategy myUncaughtThrowableStrategy = new ...
builder.setDiskCacheExecutor(newDiskCacheExecutor(myUncaughtThrowableStrategy));
builder.setResizeExecutor(newSourceExecutor(myUncaughtThrowableStrategy));
+ }+}+```++#### Log level++For a subset of well formatted logs, including lines logged when a request fails, you can use [``setLogLevel``][37] with one of the values from Android's [``Log``][38] class. Generally speaking ``log.VERBOSE`` will make logs noisier and ``Log.ERROR`` will make logs quieter, but see [the javadoc][37] for details.++```java+@GlideModule+public class YourAppGlideModule extends AppGlideModule {+ @Override+ public void applyOptions(Context context, GlideBuilder builder) {+ builder.setLogLevel(Log.DEBUG);
}
}
```
@@ -403,3 +417,5 @@
[34]: {{ site.baseurl }}/javadocs/410/com/bumptech/glide/RequestManager.html
[35]: {{ site.baseurl }}/javadocs/410/com/bumptech/glide/RequestManager.html#applyDefaultRequestOptions-com.bumptech.glide.request.RequestOptions-
[36]: {{ site.baseurl }}/javadocs/410/com/bumptech/glide/RequestManager.html#setDefaultRequestOptions-com.bumptech.glide.request.RequestOptions-
+[37]: {{ site.baseurl }}/javadocs/420/com/bumptech/glide/GlideBuilder.html#setLogLevel-int-+[38]: https://developer.android.com/reference/android/util/Log.html
The text was updated successfully, but these errors were encountered:
概述
此 Issue 由 Sync Robot 自动创建,详情请参见 #6 。
本次扫描结果: 新增:0 , 修改: 2, 删除: 0。
文件变化列表
文件具体变更信息如下(仅展示UPDATED):
The text was updated successfully, but these errors were encountered: