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

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

Merge branch '2812os-u-widgetfrag_crash' into 'v1-u'

fix: null-check widgetFragment before cast

See merge request e/os/BlissLauncher3!87
parents 49ef88f7 5a91c2a3
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -153,9 +153,11 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) :
    private fun updateRecyclerViewHeight() {
        mRecyclerView.post {
            val widgetFragment = mLauncher.fragmentManager.findFragmentByTag("qsb_view")
            if (widgetFragment != null) {
                (widgetFragment as WidgetFragment).setRecyclerViewHeight()
            }
        }
    }

    private fun updatePadding() {
        val insets = mLauncher.workspace.mInsets