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

Commit a00bb455 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: Use launcher instead of context

parent cac501a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -190,7 +190,7 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) : FrameLayout(cont
                val info = (it as AppWidgetHostView).appWidgetInfo
                val info = (it as AppWidgetHostView).appWidgetInfo
                val opts =
                val opts =
                    WidgetSizes.getWidgetSizeOptions(
                    WidgetSizes.getWidgetSizeOptions(
                        context,
                        mLauncher,
                        info.provider,
                        info.provider,
                        mLauncher.deviceProfile.inv.numColumns,
                        mLauncher.deviceProfile.inv.numColumns,
                        mLauncher.deviceProfile.inv.numRows,
                        mLauncher.deviceProfile.inv.numRows,
@@ -437,7 +437,7 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) : FrameLayout(cont


                        opts =
                        opts =
                            WidgetSizes.getWidgetSizeOptions(
                            WidgetSizes.getWidgetSizeOptions(
                                context,
                                launcher,
                                info.provider,
                                info.provider,
                                launcher.deviceProfile.inv.numColumns,
                                launcher.deviceProfile.inv.numColumns,
                                launcher.deviceProfile.inv.numRows,
                                launcher.deviceProfile.inv.numRows,