From 0a86f9ab018a496a6527d9353501ed57f63291d0 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 15 Jan 2024 23:15:16 +0100 Subject: Always show the keyboard switching key Android's shouldOfferSwitchingToNextInputMethod() method might return false when an other IME is installed, perhaps when the other IME doesn't specify android:supportsSwitchingToNextInputMethod="true". --- srcs/juloo.keyboard2/Keyboard2.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'srcs/juloo.keyboard2/Keyboard2.java') diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 7867429..0f46a13 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -136,8 +136,6 @@ public class Keyboard2 extends InputMethodService for (InputMethodSubtype s : enabled_subtypes) extra_keys.add(extra_keys_of_subtype(s)); _config.extra_keys_subtype = ExtraKeys.merge(extra_keys); - if (enabled_subtypes.size() > 1) - _config.shouldOfferSwitchingToNextInputMethod = true; } InputMethodManager get_imm() @@ -148,10 +146,6 @@ public class Keyboard2 extends InputMethodService private void refreshSubtypeImm() { InputMethodManager imm = get_imm(); - if (VERSION.SDK_INT < 28) - _config.shouldOfferSwitchingToNextInputMethod = true; - else - _config.shouldOfferSwitchingToNextInputMethod = shouldOfferSwitchingToNextInputMethod(); _config.shouldOfferVoiceTyping = true; KeyboardData default_layout = null; _config.extra_keys_subtype = null; -- cgit v1.2.3