1
0
Fork 0

For #1072: Adds onAttachedToWindow

master
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)
actionSheet.afterInflate()
//actionSheet.afterInflate()
val actionEmitter = ActionBusFactory.get(this).getManagedEmitter(SearchAction::class.java)
sessionId?.let { id ->

View File

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