diff options
| author | Jules Aguillon | 2023-07-19 23:28:33 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-07-19 23:30:58 +0200 |
| commit | 8b2c07c9cbb783149bfa58c2d375472d87aa2e57 (patch) | |
| tree | 6c8eb924b519fad4a21c86dbc596fa6580827a23 /srcs/juloo.keyboard2/CustomExtraKeysPreference.java | |
| parent | 458e17bf31c9ef6b4dfadd56dd0c0dfb709eb32c (diff) | |
| download | unexpected-keyboard-8b2c07c9cbb783149bfa58c2d375472d87aa2e57.tar.gz unexpected-keyboard-8b2c07c9cbb783149bfa58c2d375472d87aa2e57.zip | |
Refactor: Centralize logging in a static class
This new class will help write more logs. The LogPrinter is no longer
created everytime the keyboard is opened.
An error log is added if failing to load the custom extra keys.
Diffstat (limited to 'srcs/juloo.keyboard2/CustomExtraKeysPreference.java')
| -rw-r--r-- | srcs/juloo.keyboard2/CustomExtraKeysPreference.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/CustomExtraKeysPreference.java b/srcs/juloo.keyboard2/CustomExtraKeysPreference.java index 228eae8..668e6f1 100644 --- a/srcs/juloo.keyboard2/CustomExtraKeysPreference.java +++ b/srcs/juloo.keyboard2/CustomExtraKeysPreference.java @@ -109,7 +109,10 @@ public class CustomExtraKeysPreference extends PreferenceCategory for (int i = 0; i < arr.length(); i++) keys.add(arr.getString(i)); } - catch (JSONException e) {} + catch (JSONException e) + { + Logs.err_load_custom_extra_keys(e); + } return keys; } |
