For #1072: Adds onAttachedToWindow

nightly-build-test
Sawyer Blatz 6 years ago committed by Colin Lee
parent 6dcc026e04
commit 0a449dc12c

@ -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 ->

@ -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()
} }

Loading…
Cancel
Save