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

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

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

fix: null-check widgetFragment before cast

See merge request e/os/BlissLauncher3!88
parents 7f92f230 c12499b5
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -142,9 +142,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