Android Question B4XPage_CloseRequest in diferent pages

fbritop

Active Member
Licensed User
Longtime User
I´ve been trying to use B4XPage_CloseRequest but it does not fire.
Not sure if I´m doing it right.

In B4XMainPage I have:

B4X:
    pMain.Initialize
    B4XPages.AddPage("pMain", pMain)
    Sleep(0)
    B4XPages.ShowPageAndRemovePreviousPages("pMain")

and in pMain class I have:
B4X:
Private Sub pMain_CloseRequest As ResumableSub
    If drawer.LeftOpen Then
        drawer.LeftOpen = Not(drawer.LeftOpen)
        Return False
    Else
        Return True
    End If
End Sub

But it does not fire the event. Using 1.03 B4X Pages library

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…