abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2
diff options
context:
space:
mode:
authorRetrogisusDEV2023-08-23 18:53:31 -0400
committerJules Aguillon2023-12-17 20:10:39 +0100
commitdf04eae85f7500ab5385c031b65e2b9cc484fff9 (patch)
treed4d670e951e3eaa58cf16bd5aa4e7785fbcae7bf /srcs/juloo.keyboard2
parentd7c230e173aeb039565d479af7b6f00776a70626 (diff)
downloadunexpected-keyboard-df04eae85f7500ab5385c031b65e2b9cc484fff9.tar.gz
unexpected-keyboard-df04eae85f7500ab5385c031b65e2b9cc484fff9.zip
Launcher activity: Add "Select keyboard" button
Diffstat (limited to 'srcs/juloo.keyboard2')
-rw-r--r--srcs/juloo.keyboard2/LauncherActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/LauncherActivity.java b/srcs/juloo.keyboard2/LauncherActivity.java
index 35ef461..2180b43 100644
--- a/srcs/juloo.keyboard2/LauncherActivity.java
+++ b/srcs/juloo.keyboard2/LauncherActivity.java
@@ -7,6 +7,7 @@ import android.os.Bundle;
import android.provider.Settings;
import android.view.KeyEvent;
import android.view.View;
+import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.TextView;
@@ -33,6 +34,13 @@ public class LauncherActivity extends Activity
startActivity(new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS));
}
+ public void launch_imepicker(View v)
+ {
+ InputMethodManager imm =
+ (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
+ imm.showInputMethodPicker();
+ }
+
final class Tryhere_OnUnhandledKeyEventListener implements View.OnUnhandledKeyEventListener
{
public boolean onUnhandledKeyEvent(View v, KeyEvent ev)