Merge "Don't show IME on power menu popups" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-19 22:56:15 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ public class GlobalActionsPopupMenu extends ListPopupWindow {
// required to show above the global actions dialog // required to show above the global actions dialog
setWindowLayoutType(WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY); setWindowLayoutType(WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY);
setInputMethodMode(INPUT_METHOD_NOT_NEEDED);
setModal(true); setModal(true);
mGlobalActionsSidePadding = res.getDimensionPixelSize(R.dimen.global_actions_side_margin); mGlobalActionsSidePadding = res.getDimensionPixelSize(R.dimen.global_actions_side_margin);

View File

@@ -54,6 +54,7 @@ public class GlobalActionsPowerDialog {
window.setTitle(""); // prevent Talkback from speaking first item name twice window.setTitle(""); // prevent Talkback from speaking first item name twice
window.setBackgroundDrawable(res.getDrawable( window.setBackgroundDrawable(res.getDrawable(
com.android.systemui.R.drawable.control_background, context.getTheme())); com.android.systemui.R.drawable.control_background, context.getTheme()));
window.addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
return dialog; return dialog;
} }