abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/VoiceImeSwitcher.java
diff options
context:
space:
mode:
authorJules Aguillon2024-02-10 18:03:09 +0100
committerJules Aguillon2024-02-10 18:10:49 +0100
commitf4d88cc0876ec29ff46dbda0159168ebee637afb (patch)
tree72c96a25e03f187307c1e738ca4aeb990ce3ba85 /srcs/juloo.keyboard2/VoiceImeSwitcher.java
parentd5676d683f031a2d23f4e01e0ada0afd58dc9b89 (diff)
downloadunexpected-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/VoiceImeSwitcher.java')
-rw-r--r--srcs/juloo.keyboard2/VoiceImeSwitcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/VoiceImeSwitcher.java b/srcs/juloo.keyboard2/VoiceImeSwitcher.java
index 56bd33d..d228130 100644
--- a/srcs/juloo.keyboard2/VoiceImeSwitcher.java
+++ b/srcs/juloo.keyboard2/VoiceImeSwitcher.java
@@ -65,7 +65,7 @@ class VoiceImeSwitcher
prefs.edit()
.putString(PREF_LAST_USED, selected.get_id())
.putString(PREF_KNOWN_IMES, serialize_ime_ids(imes))
- .commit();
+ .apply();
switch_input_method(ims, selected);
}
})