Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
[[ AndroidButton ]] Work around bytecode gen error
Browse files Browse the repository at this point in the history
Using the result of IsAndroid directly in the if statement causes
a failure to generate the bytecode for the module.
  • Loading branch information
livecodeali committed Jun 9, 2017
1 parent d05ee43 commit 84b8fcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/widgets/androidbutton/androidbutton.lcb
Expand Up @@ -226,7 +226,9 @@ private handler expandRectangle(in pRect as Rectangle, in pExp as Number) return
end handler

public handler OnPaint()
if IsAndroid() then
variable tIsAndroid as Boolean
put IsAndroid() into tIsAndroid
if tIsAndroid then
updateProperties()
return
end if
Expand Down

0 comments on commit 84b8fcc

Please sign in to comment.