Commit 7beca8c6 authored by Mihai Branescu's avatar Mihai Branescu
Browse files

For #6140 - added setter for menu dismiss action

parent daa3595a
......@@ -267,6 +267,13 @@ class DisplayToolbar internal constructor(
}
}
/**
* Sets a lambda to be invoked when the menu is dismissed
*/
fun setMenuDismissAction(onDismiss: () -> Unit) {
views.menu.setMenuDismissAction(onDismiss)
}
/**
* List of indicators that should be displayed next to the URL.
*/
......
......@@ -41,5 +41,12 @@ internal class MenuButton(
fun dismissMenu() = impl.dismissMenu()
/**
* Sets a lambda to be invoked when the menu is dismissed
*/
fun setMenuDismissAction(onDismiss: () -> Unit) {
impl.onDismiss = onDismiss
}
fun setColorFilter(@ColorInt color: Int) = impl.setColorFilter(color)
}
......@@ -22,6 +22,9 @@ permalink: /changelog/
* **feature-accounts-push**
* Add known prefix to FxA push scope.
* **browser-toolbar**
* Add the possibility to listen to menu dismissal through `setMenuDismissAction` in `DisplayToolbar`
# 34.0.0
......
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