Skip to content

Commit c898bee

Browse files
committed
see 03/14 log
1 parent 364feca commit c898bee

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
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.13.3-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.13.4-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 ptoject helps you a lot, and you would like to support this ptoject's fu
4141

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

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

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

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies {
5656
// LeakCanary
5757
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanary_version"
5858
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanary_version"
59-
// implementation 'com.blankj:utilcode:1.13.3'
59+
// implementation 'com.blankj:utilcode:1.13.4'
6060
}
6161

6262

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ ext {
3535
min_sdk_version = 14
3636
target_sdk_version = 26
3737

38-
version_code = 1_013_003
39-
version_name = '1.13.3'// E.g 1.9.72 => 1,009,072
38+
version_code = 1_013_004
39+
version_name = '1.13.4'// E.g 1.9.72 => 1,009,072
4040

4141
// App dependencies
4242
support_version = '26.1.0'

update_log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* 18/03/10 修复 KeyboardUtils#getContentViewInvisibleHeight,发布 1.13.4 版本
12
* 18/03/10 完善 Utils#installAppSilent 和 DeviceUtils#getMacAddress,发布 1.13.3 版本
23
* 18/03/09 完善 ActivityUtils#getTopActivity
34
* 18/03/08 新增反射获取栈顶 Activity 的方法,发布 1.13.2 版本

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-
compile 'com.blankj:utilcode:1.13.3'
5+
compile 'com.blankj:utilcode:1.13.4'
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-
compile 'com.blankj:utilcode:1.13.3'
5+
compile 'com.blankj:utilcode:1.13.4'
66
```
77

88

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ public static boolean isSoftInputVisible(final Activity activity,
116116

117117
private static int getContentViewInvisibleHeight(final Activity activity) {
118118
final View contentView = activity.findViewById(android.R.id.content);
119-
Rect r = new Rect();
120-
contentView.getWindowVisibleDisplayFrame(r);
121-
return contentView.getRootView().getHeight() - r.height();
119+
Rect outRect = new Rect();
120+
contentView.getWindowVisibleDisplayFrame(outRect);
121+
return contentView.getBottom() - outRect.bottom;
122122
}
123123

124124
/**

0 commit comments

Comments
 (0)