From f8bce500ff3f870e6eadae591541a1210e458cff Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 18 Apr 2021 00:55:31 +0200 Subject: Hide the input switching key if it's not needed Android has a new way of switching between input methods and this key need to be hidden in most cases. --- srcs/juloo.keyboard2/Config.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'srcs/juloo.keyboard2/Config.java') diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 20e0311..366cc0c 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -24,6 +24,8 @@ class Config public float horizontalMargin; public boolean disableAccentKeys; + public boolean shouldOfferSwitchingToNextInputMethod; + public Config(Keyboard2 context) { Resources res = context.getResources(); @@ -46,6 +48,8 @@ class Config disableAccentKeys = false; // from prefs refresh(); + // initialized later + shouldOfferSwitchingToNextInputMethod = false; } /* -- cgit v1.2.3