GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

Commit 0c748c05 authored by Jeff Boek's avatar Jeff Boek
Browse files

For #14279 - Prevent GeckoView from resizing while searching

parent 2d67e4b7
...@@ -17,6 +17,7 @@ import android.view.LayoutInflater ...@@ -17,6 +17,7 @@ import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.view.ViewStub import android.view.ViewStub
import android.view.WindowManager
import import
import import
import androidx.constraintlayout.widget.ConstraintProperties.BOTTOM import androidx.constraintlayout.widget.ConstraintProperties.BOTTOM
...@@ -80,6 +81,21 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler { ...@@ -80,6 +81,21 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
private val qrFeature = ViewBoundFeatureWrapper<QrFeature>() private val qrFeature = ViewBoundFeatureWrapper<QrFeature>()
private val speechIntent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH) private val speechIntent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH)
override fun onStart() {
// To prevent GeckoView from resizing we're going to change the softInputMode to not adjust
// the size of the window.
override fun onStop() {
// Let's reset back to the default behavior after we're done searching
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment