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

Custom kbd fixes #1159

Merged
merged 2 commits into from
Dec 21, 2023
Merged

Custom kbd fixes #1159

merged 2 commits into from
Dec 21, 2023

Conversation

svillar
Copy link
Member

@svillar svillar commented Dec 21, 2023

This PR includes several fixes in our CustomKeyboard class being the most relevant one a fix for an unchecked cast that was issuing a warning on every build.

Fixes #1158

We do know that the rows field in Keyboard is an ArrayList<Row> so we can
safely remove the warning. Instead of suppressing it for the whole method
we can convert the if to a ternary operator and use the annotation for a
single line as it's done later in the same method.
Several easy unrelated fixes included unused imports, not needed local
variables or unneeded null checks.
@svillar svillar merged commit c34a96c into main Dec 21, 2023
20 checks passed
@svillar svillar deleted the custom_kbd_fixes branch December 21, 2023 19:18
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

Successfully merging this pull request may close these issues.

Unchecked & unsafe operations in our custom keyboard
2 participants