Skip to content

Commit

Permalink
Validate null shortcutsAndWidgets on CustomHotseat. Fix #428
Browse files Browse the repository at this point in the history
Signed-off-by: Saul Henriquez <saul_henriquez@hotmail.com>
  • Loading branch information
saulhdev committed Dec 23, 2023
1 parent 5482469 commit 0955e9c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ open class CustomHotseat @JvmOverloads constructor(
}

override fun getAlpha(): Float {
if (shortcutsAndWidgets == null) return 1f
return shortcutsAndWidgets.alpha
}

Expand Down

0 comments on commit 0955e9c

Please sign in to comment.