abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Config.java
diff options
context:
space:
mode:
authorJules Aguillon2021-12-19 20:04:17 +0100
committerJules Aguillon2021-12-19 20:04:17 +0100
commitd721cc86d1b9d7241aa9adf70565acb6067537f5 (patch)
tree34af607fd9d81af79fd60b7777f1e4a058b013e3 /srcs/juloo.keyboard2/Config.java
parent1cfecbdf48edb65cc0be8b017c8f389f91212a32 (diff)
downloadunexpected-keyboard-d721cc86d1b9d7241aa9adf70565acb6067537f5.tar.gz
unexpected-keyboard-d721cc86d1b9d7241aa9adf70565acb6067537f5.zip
Avoid crash when removing a layout
Might happen when downgrading the app.
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
-rw-r--r--srcs/juloo.keyboard2/Config.java3
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;
}
}