mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-18 12:30:38 +01:00
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
|
private fun getFakeHeight() = height - sideMargins.top - sideMargins.bottom
|
||||||
|
|
||||||
@SuppressLint("DrawAllocation")
|
@SuppressLint("DrawAllocation")
|
||||||
override fun onDraw(canvas: Canvas) {
|
override fun onDraw(canvas: Canvas?) {
|
||||||
super.onDraw(canvas)
|
super.onDraw(canvas)
|
||||||
|
if (canvas == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (cellXCoords.isEmpty()) {
|
if (cellXCoords.isEmpty()) {
|
||||||
fillCellSizes()
|
fillCellSizes()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user