feat/download data empty state button#599
Conversation
Thank you for the pull request! 💙🩵The Scribe-Android team will do our best to address your contribution as soon as we can. The following are some important points:
Note Scribe uses Conventional Comments in reviews to make sure that communication is as clear as possible. |
Maintainer ChecklistThe following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)
|
|
Thanks so much for the work here, @ashb155! Could we do a few more edits so that the UI matches the designs as detailed in this message here? |
|
will work on it @andrewtavis ! |
|
Current designs @andrewtavis
|


Contributor checklist
./gradlew lintKotlin detekt testcommand as directed in the testing section of the contributing guideDescription
This PR adds an empty state banner to Scribe keyboards for when the keyboard has been installed but language data has not yet been downloaded.
Files changed:
input_method_view.xml— Added aButtonwith idempty_state_bannerabove the keyboard viewGeneralKeyboardIME.kt— Added logic inonStartInputViewto check if the language database file exists, if not, the banner is shown and the command options bar is hidden. Tapping the banner opensInstallationpage where the user can download language datagetDatabasePath("${languageAlias}LanguageData.sqlite").exists()to reliably detect whether data has been downloaded.Testing:
Tested on an emulator with no language data downloaded — the banner appears correctly above the keyboard. After downloading data, the banner is hidden and the normal command bar is shown.
Note: The banner text "Please download language data" is currently hardcoded in English.
Screenshots
Related issue