Skip to content

Commit f443b35

Browse files
committed
see 08/07 log
1 parent 1e9621a commit f443b35

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.18.2-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.18.3-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If this project helps you a lot and you want to support the project's developmen
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.18.2-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.18.3-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

config.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ext {
66
compileSdkVersion: 27,
77
minSdkVersion : 14,
88
targetSdkVersion : 27,
9-
versionCode : 1_018_002,
10-
versionName : '1.18.2'// E.g 1.9.72 => 1,009,072
9+
versionCode : 1_018_003,
10+
versionName : '1.18.3'// E.g 1.9.72 => 1,009,072
1111
]
1212

1313
versionConfig = [
@@ -155,7 +155,7 @@ def configAppDependencies(Project pro) {
155155
// LeakCanary
156156
debugImplementation depConfig.leakcanary.android
157157
releaseImplementation depConfig.leakcanary.android_no_op
158-
// implementation 'com.blankj:utilcode:1.18.2'
158+
// implementation 'com.blankj:utilcode:1.18.3'
159159
}
160160
}
161161

update_log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* 18/08/06 修复 ScreenUtils#screenShot 中 decorView.getDrawingCache() 为空的问题,发布 1.18.3
12
* 18/08/05 修复 1.18.0 版本删去 `if (activity.getClass() == PermissionUtils.PermissionActivity.class) return;` 造成 PermissionUtils 获取栈顶 Activity 问题,发布 1.18.2
23
* 18/08/04 新增 LogUtils#Config#setSaveDays,发布 1.18.1
34
* 18/08/03 新增 LogUtils#Config#addFormatter,并新增 Array, Throwable, Bundle, Intent 的格式化输出

utilcode/README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gradle:
44
```groovy
5-
implementation 'com.blankj:utilcode:1.18.2'
5+
implementation 'com.blankj:utilcode:1.18.3'
66
```
77

88

utilcode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gradle:
44
```groovy
5-
implementation 'com.blankj:utilcode:1.18.2'
5+
implementation 'com.blankj:utilcode:1.18.3'
66
```
77

88

utilcode/src/main/java/com/blankj/utilcode/util/ScreenUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ public static Bitmap screenShot(@NonNull final Activity activity) {
217217
public static Bitmap screenShot(@NonNull final Activity activity, boolean isDeleteStatusBar) {
218218
View decorView = activity.getWindow().getDecorView();
219219
decorView.setDrawingCacheEnabled(true);
220-
decorView.buildDrawingCache();
220+
decorView.setWillNotCacheDrawing(false);
221221
Bitmap bmp = decorView.getDrawingCache();
222+
if (bmp == null) return null;
222223
DisplayMetrics dm = new DisplayMetrics();
223224
activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
224225
Bitmap ret;

0 commit comments

Comments
 (0)