mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-16 19:40:41 +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
|
||||
|
||||
@SuppressLint("DrawAllocation")
|
||||
override fun onDraw(canvas: Canvas) {
|
||||
override fun onDraw(canvas: Canvas?) {
|
||||
super.onDraw(canvas)
|
||||
if (canvas == null) {
|
||||
return
|
||||
}
|
||||
|
||||
if (cellXCoords.isEmpty()) {
|
||||
fillCellSizes()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user