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

Android 14 系统软键盘无法弹出 #456

Open
liuyan0619 opened this issue Dec 5, 2023 · 5 comments
Open

Android 14 系统软键盘无法弹出 #456

liuyan0619 opened this issue Dec 5, 2023 · 5 comments

Comments

@liuyan0619
Copy link

在Android 14手机上,有AutoSizeCompat.autoConvertDensityOfGlobal((super.getResources()));无法弹出输入法。请问有人碰到过吗,怎么解决?

@xiaolunan
Copy link

我的解决办法是删除以下代码解决的
@OverRide
public Resources getResources() {
//需要升级到 v1.1.2 及以上版本才能使用 AutoSizeCompat
AutoSizeCompat.autoConvertDensityOfGlobal((super.getResources()));
return super.getResources();
}

@Chinahuangzhengyu
Copy link

试试注释掉这2句
1703302985110

@630820268
Copy link

android14 注释掉后部分手机在inputtype类型是不可见密码的情况下弹出黑屏 出现该情况的手机此时弹出的是它自带的安全键盘 非系统键盘

@TangAnna
Copy link

@OverRide
public Resources getResources() {
//添加判断是否是主线程中
if (Looper.myLooper() == Looper.getMainLooper()) {
AutoSizeCompat.autoConvertDensityOfGlobal(super.getResources());
}
return super.getResources();
}

@630820268
Copy link

android14已经判断过是否在主线程了 默认输入框能正常弹出 但是如果输入类型是不可见密码时 个别手机如果自带安全键盘会黑屏无法弹出 不知道你们有没有碰到

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

5 participants