diff options
| author | Jules Aguillon | 2026-04-10 19:03:37 +0200 |
|---|---|---|
| committer | GitHub | 2026-04-10 19:03:37 +0200 |
| commit | 7bd9306a9f787d3222691f46d03e38f86ec87c9c (patch) | |
| tree | 08b8913f44a3cbd1cd0be23107300bf4a64c754f /srcs/juloo.keyboard2/dict | |
| parent | f29ae92ba7b5567429c9132afaa4353282c85abe (diff) | |
| download | unexpected-keyboard-7bd9306a9f787d3222691f46d03e38f86ec87c9c.tar.gz unexpected-keyboard-7bd9306a9f787d3222691f46d03e38f86ec87c9c.zip | |
Dictionary activity: Status message when the keyboard is not enabled (#1228)
This shows a reason why the list is empty and removes confusion.
Diffstat (limited to 'srcs/juloo.keyboard2/dict')
| -rw-r--r-- | srcs/juloo.keyboard2/dict/DictionaryListView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/dict/DictionaryListView.java b/srcs/juloo.keyboard2/dict/DictionaryListView.java index 465d373..345a800 100644 --- a/srcs/juloo.keyboard2/dict/DictionaryListView.java +++ b/srcs/juloo.keyboard2/dict/DictionaryListView.java @@ -54,6 +54,9 @@ public class DictionaryListView extends LinearLayout } } refresh(); + // The keyboard is not enabled and the list is empty, show a message. + if (locales.installed.size() == 0) + addView(View.inflate(ctx, R.layout.dictionary_status_not_enabled, null)); } /** Update the "installed" status of item views. Meaning whether the |
