adding a crashfix
This commit is contained in:
parent
980d75a30f
commit
1190c5de2b
|
@ -510,8 +510,12 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
|||
private fun getFakeHeight() = height - sideMargins.top - sideMargins.bottom
|
||||
|
||||
@SuppressLint("DrawAllocation")
|
||||
override fun onDraw(canvas: Canvas) {
|
||||
override fun onDraw(canvas: Canvas?) {
|
||||
super.onDraw(canvas)
|
||||
if (canvas == null) {
|
||||
return
|
||||
}
|
||||
|
||||
if (cellXCoords.isEmpty()) {
|
||||
fillCellSizes()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue