diff options
| author | Jules Aguillon | 2024-02-10 18:03:09 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2024-02-10 18:10:49 +0100 |
| commit | f4d88cc0876ec29ff46dbda0159168ebee637afb (patch) | |
| tree | 72c96a25e03f187307c1e738ca4aeb990ce3ba85 /srcs/juloo.keyboard2/KeyEventHandler.java | |
| parent | d5676d683f031a2d23f4e01e0ada0afd58dc9b89 (diff) | |
| download | unexpected-keyboard-f4d88cc0876ec29ff46dbda0159168ebee637afb.tar.gz unexpected-keyboard-f4d88cc0876ec29ff46dbda0159168ebee637afb.zip | |
Fix various linter warnings
Among others:
- Use `apply` instead of `commit` when saving shared preferences.
- Avoid inlined Api
- Remove unused resources
Diffstat (limited to 'srcs/juloo.keyboard2/KeyEventHandler.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyEventHandler.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/KeyEventHandler.java b/srcs/juloo.keyboard2/KeyEventHandler.java index 51d4385..65de779 100644 --- a/srcs/juloo.keyboard2/KeyEventHandler.java +++ b/srcs/juloo.keyboard2/KeyEventHandler.java @@ -1,5 +1,6 @@ package juloo.keyboard2; +import android.annotation.SuppressLint; import android.os.Looper; import android.text.InputType; import android.view.KeyEvent; @@ -197,6 +198,7 @@ public final class KeyEventHandler implements Config.IKeyEventHandler conn.performContextMenuAction(id); } + @SuppressLint("InlinedApi") void handle_editing_key(KeyValue.Editing ev) { switch (ev) |
