Commit 9743485f authored by MozLando's avatar MozLando
Browse files

Merge #7108



7108: For #7107: Increase touch target height for buttons in browser toolbar. r=rocketsroger a=mcarare
Co-authored-by: default avatarmcarare <mihai.carare.dev@gmail.com>
parents ff020476 58529c97
......@@ -7,6 +7,7 @@ package mozilla.components.browser.menu.item
import android.content.Context
import android.os.Build
import android.view.View
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.widget.ImageView
import android.widget.LinearLayout
import androidx.annotation.ColorRes
......@@ -41,7 +42,6 @@ class BrowserMenuItemToolbar(
val selectableBackground =
layout.context.theme.resolveAttribute(android.R.attr.selectableItemBackgroundBorderless)
val iconHeight = view.resources.getDimensionPixelSize(R.dimen.mozac_browser_menu_item_image_text_icon_height)
for (item in items) {
val button = AppCompatImageButton(layout.context)
......@@ -54,7 +54,7 @@ class BrowserMenuItemToolbar(
menu.dismiss()
}
layout.addView(button, LinearLayout.LayoutParams(0, iconHeight, 1f))
layout.addView(button, LinearLayout.LayoutParams(0, MATCH_PARENT, 1f))
}
}
......
Supports Markdown
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