summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java
diff options
context:
space:
mode:
authorVinit Nayak <peanutbutter@google.com>2021-04-16 12:50:22 -0700
committerVinit Nayak <peanutbutter@google.com>2021-05-05 12:50:39 -0700
commit673faf59ee21faa4cb4af6d26b214fcb0820ea5d (patch)
treef6f2092ba6a184327475fb772b48ca1e0c4f47fd /quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java
parent16fd85629dca9b96bcb6e3e51c7dd64c923b02f3 (diff)
Add IME switcher/hide button bar when IME showing
Bug: 180046394 Change-Id: Ic2bd919ab3d27e0a430b081c771ea8dc5827be81
Diffstat (limited to 'quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java')
-rw-r--r--quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java
index cf8ff381b1..54e1610cd1 100644
--- a/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java
+++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java
@@ -18,6 +18,7 @@ package com.android.launcher3.taskbar;
import android.content.Context;
import android.content.Intent;
+import android.view.inputmethod.InputMethodManager;
import androidx.annotation.IntDef;
@@ -41,7 +42,8 @@ public class TaskbarNavButtonController {
@IntDef(value = {
BUTTON_BACK,
BUTTON_HOME,
- BUTTON_RECENTS
+ BUTTON_RECENTS,
+ BUTTON_IME_SWITCH
})
public @interface TaskbarButton {}
@@ -49,6 +51,7 @@ public class TaskbarNavButtonController {
static final int BUTTON_BACK = 1;
static final int BUTTON_HOME = BUTTON_BACK << 1;
static final int BUTTON_RECENTS = BUTTON_HOME << 1;
+ static final int BUTTON_IME_SWITCH = BUTTON_RECENTS << 1;
private final Context mContext;
@@ -68,6 +71,9 @@ public class TaskbarNavButtonController {
case BUTTON_RECENTS:
navigateToOverview();;
break;
+ case BUTTON_IME_SWITCH:
+ showIMESwitcher();
+ break;
}
}
@@ -86,4 +92,9 @@ public class TaskbarNavButtonController {
SystemUiProxy.INSTANCE.getNoCreate().onBackPressed();
}
+ private void showIMESwitcher() {
+ mContext.getSystemService(InputMethodManager.class).showInputMethodPickerFromSystem(
+ true /* showAuxiliarySubtypes */, mContext.getDisplayId());
+ }
+
}