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

Commit 356c8684 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Saalim Quadri
Browse files

fix(widget): Fix unrepsonsive widgets at time



[SahilSonar - adapted to A14]

Signed-off-by: default avatarSahilSonar <sss.sonar2003@gmail.com>
Signed-off-by: default avatarSaalim Quadri <danascape@gmail.com>
parent 408d0790
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -229,6 +229,7 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) :
                            Logger.e(TAG, "Could not add widget ${it.flattenToString()}")
                        }
                    }
                    rebindWidgets()
                } else {
                    rebindWidgets(true)
                }
@@ -277,6 +278,7 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) :
            if (!isWidgetBound) {
                mWidgetHost.deleteAppWidgetId(widgetId)
                Logger.e(TAG, "Could not add widget ${provider.flattenToString()}")
                return
            }

            configureWidget(widgetId)
@@ -285,8 +287,7 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) :
        private fun configureWidget(widgetId: Int) {
            val info = mWidgetManager.getAppWidgetInfo(widgetId)
            if (info != null) {
                val widgetInfo = LauncherAppWidgetProviderInfo.fromProviderInfo(launcher, info)
                if (widgetInfo.configure != null) {
                if (info.configure != null) {
                    sendIntent(widgetId)
                } else {
                    addView(widgetId)