Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在全面屏中有bug #2

Closed
rzdchen opened this issue Sep 11, 2018 · 4 comments
Closed

在全面屏中有bug #2

rzdchen opened this issue Sep 11, 2018 · 4 comments

Comments

@rzdchen
Copy link

rzdchen commented Sep 11, 2018

小米8 SE 手机设置隐藏虚拟键后
private boolean isOpenSoftKeyboard() {
return mLastFrame.bottom != 0 && mLastFrame.bottom != mDisplayHeight;
}
此方法失效, mLastFrame.bottom != mDisplayHeight; 总是为true。

@rzdchen rzdchen changed the title 面板不适合刘海屏 在全面屏中有bug Sep 11, 2018
@rzdchen
Copy link
Author

rzdchen commented Sep 11, 2018

这个应该算是小米8 SE的bug,不管是否隐藏虚拟键 (activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);
mDisplayHeight = metrics.heightPixels;)获取的屏幕高度都是一样的。

@qiujuer
Copy link
Owner

qiujuer commented Sep 13, 2018

应该是刘海等问题导致的,我最近看一下哈。看看能否做一次修复。

@rzdchen
Copy link
Author

rzdchen commented Sep 21, 2018

加了一个或的条件。
image
image

@qiujuer
Copy link
Owner

qiujuer commented May 1, 2019

该问题已修复,使用:1.2.0 版本即可。

@qiujuer qiujuer closed this as completed May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants