We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我已确认所提问题在 FAQ.md 及 Issues 上没有。
问题描述:mPopupKeyboard.getKeyboardEngine().setLocalProvinceName("内蒙古自治区"); app直接崩溃了。 其他省份没这个问题
The text was updated successfully, but these errors were encountered:
当前省份=蒙的时候,provinces.size=12,而firstRow.size()=10,则会崩溃:
java.lang.IndexOutOfBoundsException: Index: 10, Size: 10 at java.util.ArrayList.get(ArrayList.java:411) at com.parkingwang.keyboard.engine.NeighborLayoutTransformer.transformLayout(NeighborLayoutTransformer.java:38)
修复方式我简单的修改了 for (int headIdx = 0; headIdx < provinces.size(); headIdx++) 改为 for (int headIdx = 0; headIdx < Math.min(provinces.size(), firstRow.size()); headIdx++) 即可解决此崩溃问题.
for (int headIdx = 0; headIdx < provinces.size(); headIdx++)
for (int headIdx = 0; headIdx < Math.min(provinces.size(), firstRow.size()); headIdx++)
完整Commit: Fork/vehicle-keyboard-android@979c57d
Sorry, something went wrong.
No branches or pull requests
我已确认所提问题在 FAQ.md 及 Issues 上没有。
问题描述:mPopupKeyboard.getKeyboardEngine().setLocalProvinceName("内蒙古自治区"); app直接崩溃了。
其他省份没这个问题
The text was updated successfully, but these errors were encountered: