diff --git a/CHANGELOG.md b/CHANGELOG.md index a6e6422..7d67d9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log --- +### Version 1.4.5 (2016-04-21) + +- 修复页面是继承自`Activity`或`FragmentActivity`的情况下,由于计算键盘是否显示出现错误,导致存在闪动的bug。Closes #24 。 + ### Version 1.4.4 (2016-04-19) - 修复在一些特殊情况下如(一些继承自`FragmentActivity`的情况)有可能出现判定正在打开全屏布局的方案有误导致没有处理闪动的bug。Closes #21 。 diff --git a/README.md b/README.md index 5504630..e2e43be 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ 在`build.gradle`中引入: ``` -compile 'cn.dreamtobe.kpswitch:library:1.4.4' +compile 'cn.dreamtobe.kpswitch:library:1.4.5' ``` @@ -71,8 +71,8 @@ limitations under the License. [adjust_unresolved_gif]: https://raw.githubusercontent.com/Jacksgong/JKeybordPanelSwitch/master/art/adjust_unresolved.gif [build_status_svg]: https://travis-ci.org/Jacksgong/JKeyboardPanelSwitch.svg?branch=master [build_status_link]: https://travis-ci.org/Jacksgong/JKeyboardPanelSwitch -[KeyboardUtil_calculateKeyboardHeight_link]: https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java#L197 -[KeyboardUtil_calculateKeyboardShowing_link]: https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java#L248 +[KeyboardUtil_calculateKeyboardHeight_link]: https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java#L196 +[KeyboardUtil_calculateKeyboardShowing_link]: https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java#L247 [KPSwitchRootLayoutHandler_link]: https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/library/src/main/java/cn/dreamtobe/kpswitch/handler/KPSwitchRootLayoutHandler.java [KPSwitchPanelLayoutHandler_link]: https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/library/src/main/java/cn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler.java [KPSwitchFSPanelLayoutHandler_link]: https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/library/src/main/java/cn/dreamtobe/kpswitch/handler/KPSwitchFSPanelLayoutHandler.java diff --git a/gradle.properties b/gradle.properties index 90b1cdb..24478e1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=1.4.4 -VERSION_CODE=11 +VERSION_NAME=1.4.5 +VERSION_CODE=12 BUILD_TOOLS_VERSION=23.0.1 COMPILE_SDK_VERSION=23 diff --git a/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java b/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java index eab5a0e..a2cc171 100644 --- a/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java +++ b/library/src/main/java/cn/dreamtobe/kpswitch/util/KeyboardUtil.java @@ -252,7 +252,7 @@ private void calculateKeyboardShowing(final int displayHeight) { final View actionBarOverlayLayout = (View)contentView.getParent(); // in the case of FragmentLayout, this is not real ActionBarOverlayLayout, it is // LinearLayout, and is a child of DecorView, and in this case, its top-padding would be - // equal to the height of status bar, and its height would equal to ScreenHeight - + // equal to the height of status bar, and its height would equal to DecorViewHeight - // NavigationBarHeight. final int actionBarOverlayLayoutHeight = actionBarOverlayLayout.getHeight() - actionBarOverlayLayout.getPaddingTop();