#Region Project Attributes
Sub Process_Globals
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
End Sub
Sub Activity_Resume
CallSubDelayed(Me, "Method_BAD") 'Change this to either Method_OK or Method_BAD to illustrate the bug.
End Sub
Sub Button1_Click
ToastMessageShow("Hello world!", False)
End Sub
Sub Method_OK()
wait for (Method2) Complete (Result As Boolean)
If Not(Result) Then Return
End Sub
Sub Method_BAD
wait for (Method2) Complete (Result As Boolean) : If Not(Result) Then Return
End Sub
Sub Method2() As ResumableSub
Return True
End Sub