-
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: display
InitialKeyboard
before deployment or lacks of per…
…missions If permissions are not granted, `RimeWrapper.canStart` will be set to false, so `RimeWrapper` will save the `Runnable` and wait to start later. When permission are granted, `RimeWrapper.canStart` will be set to true in `onCreate()`, `onCreateInputView()` and `onStartInputView()`. And rime deployment will be triggered accordingly. For UI display: If permissions are not granted, an error message will be displayed in `InitialKeyboard`. If permissions are granted, `InitialKeyboard` with deployment progress will be displayed. If deployment is completed, the normal keyboard will be displayed. Do not set `initialKeyboard` to null to prevent NPE. As the callback in `RimeWrapper` maybe perform faster or slower, we will not be sure when `setInputView()` will run. We should either check for null for all call to `initialKeyboard`, or do not set it to null. Refs #1159
- Loading branch information
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters