-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
fix(android/app): Toggle keyboard update notifications for landscape and tablets #7832
Conversation
User Test ResultsTest specification and instructions
Test Artifacts |
GROUP_PHONE_LANDSCAPE: - Verifies update installs for phone in landscape orientation. Note - Keyman always starts up in portrait orientation, so you may need to re-orient the device back and forth to get Keyman in landscape orientation |
@bharanidharanj - the crash you experienced was related to Android S, and I've created issue #7843 to address that. Can you retest with Android tablet using Android 11.0 (API 30)? @keymanapp-test-bot retest GROUP_TABLET_LANDSCAPE |
@darcywong00 Sure, I will retest it in Android 11.0 emulator. |
@@ -452,6 +453,11 @@ public boolean onOptionsItemSelected(MenuItem item) { | |||
KMManager.getUpdateTool().executeOpenUpdates(); | |||
// Dismiss icon | |||
updateUpdateCountIndicator(0); | |||
final MenuItem _keyboardupdate = menu.findItem(R.id.action_update_keyboards); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for menu
to be uninitialized at this point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The system should have called onCreateOptionsMenu() the first time menu is displayed
https://developer.android.com/reference/android/app/Activity#onCreateOptionsMenu(android.view.Menu)
GROUP_TABLET_LANDSCAPE: - Verifies update installs for tablet (either orientation)
..Landscape Orientation ..Portrait Orientation |
Changes in this pull request will be available for download in Keyman version 16.0.116-beta |
Fixes #6731
Previously, the Keyman notification of keyboard updates could appear on 3 form factors:
The landscape and tablet layouts had a complexity of a dynamic layout "update_count_view" which turned out to be un-clickable.
This PR removes the usage of "update_count_view", and toggles the update icon when updates are available. (This removes the feature of a dynamic count of updates available). The minor loss in feature should be acceptable since long-term we plan to just automatically download keyboard/dictionary updates as they're available (#7171).
User Testing
Setup - For each group, use the Android device and orientation as specified in the test.
GROUP_PHONE_PORTRAIT - Verifies update installs for phone in portrait orientation
GROUP_PHONE_LANDSCAPE - Verifies update installs for phone in landscape orientation. Note - Keyman always starts up in portrait orientation, so you may need to re-orient the device back and forth to get Keyman in landscape orientation
GROUP_TABLET_LANDSCAPE - Verifies update installs for tablet (either orientation)
TEST_KEYBOARD_UPDATE