Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dacf32f8 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Mohammed Althaf T
Browse files

fix(widget): Host not listening on initial boot

parent bb19210c
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -208,15 +208,18 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) :
                    tag = "wrapper_children"
                    orientation = LinearLayout.VERTICAL
                }

            if (isQsbEnabled) {
                mWidgetHost.startListening()
                loadWidgets()
            }

            return mWrapper
        }

        override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
            if (isQsbEnabled) {
                mWidgetHost.startListening()
            }

            super.onViewCreated(view, savedInstanceState)
        }

@@ -237,7 +240,6 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) :
                            Logger.e(TAG, "Could not add widget ${it.flattenToString()}")
                        }
                    }
                    rebindWidgets()
                } else {
                    rebindWidgets(true)
                }