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/Config.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'srcs/juloo.keyboard2/Config.java') diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index e37ab0f..e2fc316 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -61,7 +61,6 @@ public final class Config public boolean pin_entry_enabled; // Dynamically set - public boolean shouldOfferSwitchingToNextInputMethod; public boolean shouldOfferVoiceTyping; public String actionLabel; // Might be 'null' public int actionId; // Meaningful only when 'actionLabel' isn't 'null' @@ -88,7 +87,6 @@ public final class Config // from prefs refresh(res); // initialized later - shouldOfferSwitchingToNextInputMethod = false; shouldOfferVoiceTyping = false; actionLabel = null; actionId = 0; @@ -238,8 +236,6 @@ public final class Config switch (key.getEvent()) { case CHANGE_METHOD_PICKER: - if (!shouldOfferSwitchingToNextInputMethod) - return null; if (switch_input_immediate) return KeyValue.getKeyByName("change_method_prev"); return key; -- cgit v1.2.3