Commit 623ddcc6 authored by Emily Kager's avatar Emily Kager Committed by Emily Kager
Browse files

Use const in BrowserToolbar for default value

parent 9d1da9fc
......@@ -27,6 +27,7 @@ import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import mozilla.components.browser.menu.BrowserMenuBuilder
import mozilla.components.browser.toolbar.display.DisplayToolbar
import mozilla.components.browser.toolbar.display.DisplayToolbar.Companion.BOTTOM_PROGRESS_BAR
import mozilla.components.browser.toolbar.edit.EditToolbar
import mozilla.components.concept.toolbar.AutocompleteDelegate
import mozilla.components.concept.toolbar.AutocompleteResult
......@@ -316,7 +317,7 @@ class BrowserToolbar @JvmOverloads constructor(
attrs?.let {
progressBarGravity = getInt(
R.styleable.BrowserToolbar_browserToolbarProgressBarGravity,
0
BOTTOM_PROGRESS_BAR
)
hintColor = getColor(
R.styleable.BrowserToolbar_browserToolbarHintColor,
......
......@@ -436,7 +436,7 @@ internal class DisplayToolbar(
companion object {
internal const val URL_FADING_EDGE_SIZE_DP = 24
private const val BOTTOM_PROGRESS_BAR = 0
const val BOTTOM_PROGRESS_BAR = 0
private const val TOP_PROGRESS_BAR = 1
private const val ICON_PADDING_DP = 16
private const val MENU_PADDING_DP = 16
......
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