diff options
| author | Jules Aguillon | 2021-12-19 20:04:17 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2021-12-19 20:04:17 +0100 |
| commit | d721cc86d1b9d7241aa9adf70565acb6067537f5 (patch) | |
| tree | 34af607fd9d81af79fd60b7777f1e4a058b013e3 | |
| parent | 1cfecbdf48edb65cc0be8b017c8f389f91212a32 (diff) | |
| download | unexpected-keyboard-d721cc86d1b9d7241aa9adf70565acb6067537f5.tar.gz unexpected-keyboard-d721cc86d1b9d7241aa9adf70565acb6067537f5.zip | |
Avoid crash when removing a layout
Might happen when downgrading the app.
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 7f1b395..6f4fdf9 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -102,8 +102,7 @@ class Config { case "azerty": return R.xml.azerty; case "qwerty": return R.xml.qwerty; - case "system": return -1; - default: throw new IllegalArgumentException(); + case "system": default: return -1; } } |
