2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00

For #1072: Adds onAttachedToWindow

This commit is contained in:
Sawyer Blatz 2019-03-21 07:58:24 -07:00 committed by Colin Lee
parent 6dcc026e04
commit 0a449dc12c
2 changed files with 3 additions and 2 deletions

View File

@ -210,7 +210,7 @@ class BrowserFragment : Fragment(), BackHandler {
) )
val actionSheet = view.findViewById<QuickActionSheet>(R.id.quick_action_sheet) val actionSheet = view.findViewById<QuickActionSheet>(R.id.quick_action_sheet)
actionSheet.afterInflate() //actionSheet.afterInflate()
val actionEmitter = ActionBusFactory.get(this).getManagedEmitter(SearchAction::class.java) val actionEmitter = ActionBusFactory.get(this).getManagedEmitter(SearchAction::class.java)
sessionId?.let { id -> sessionId?.let { id ->

View File

@ -31,7 +31,8 @@ class QuickActionSheet @JvmOverloads constructor(
inflate(getContext(), R.layout.layout_quick_action_sheet, this) inflate(getContext(), R.layout.layout_quick_action_sheet, this)
} }
fun afterInflate() { override fun onAttachedToWindow() {
super.onAttachedToWindow()
setupHandle() setupHandle()
} }