From 98725c7e921f96c542a386dbd2027ee8fbdf0c41 Mon Sep 17 00:00:00 2001 From: Roger Yang Date: Thu, 4 Apr 2024 14:03:28 +0000 Subject: [PATCH] Bug 1875111 - Show keyboard when acquiring focus in edit toolbar. r=mcarare,android-reviewers Differential Revision: https://phabricator.services.mozilla.com/D206558 --- .../java/mozilla/components/browser/toolbar/edit/EditToolbar.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android-components/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/edit/EditToolbar.kt b/android-components/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/edit/EditToolbar.kt index 932f48adc7b7..cd95827d7af4 100644 --- a/android-components/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/edit/EditToolbar.kt +++ b/android-components/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/edit/EditToolbar.kt @@ -31,6 +31,7 @@ import mozilla.components.concept.toolbar.AutocompleteDelegate import mozilla.components.concept.toolbar.Toolbar import mozilla.components.support.base.log.logger.Logger import mozilla.components.support.base.utils.NamedThreadFactory +import mozilla.components.support.ktx.android.view.showKeyboard import mozilla.components.ui.autocomplete.InlineAutocompleteEditText import java.util.concurrent.Executors import mozilla.components.ui.colors.R as colorsR @@ -226,6 +227,7 @@ class EditToolbar internal constructor( isFocusableInTouchMode = true } requestFocus() + showKeyboard() } } }