iOS Question Designer layout not waiting for button press

Vern

Member
Licensed User
Longtime User
I have a simple designer layout with an imageview and 2 buttons (one button to save the image, the other to reject it).
The code below worked fine until I upgraded my Mac. Now the layout shows then disappears without waiting for a button to be pressed. There's no error logged so I assume there's an issue with the code (maybe the buttons?). Does anyone have a clue why?

B4X:
Sub Process_Globals
    Private Btn_save As Button
    Private Btn_reject As Button
    Private Page56 As Page
    Private PnlRoot As Panel
    Private ImageView1 As B4XView
    Private xui As XUI
End Sub

Public Sub Show_View
    If Page56.IsInitialized = False Then
        Page56.Initialize("Page56")
    End If    
    Page56.RootPanel.LoadLayout("Main")
    PnlRoot.LoadLayout("Photo_review")
    Main.NavControl.ShowPage(Page56)
    
    ImageView1.SetBitmap(xui.LoadBitmapResize(Main.filedir,Main.filename,ImageView1.Width,ImageView1.Height,True))
End Sub

Sub Btn_save_Click
    Main.Accept_photo = 1
End Sub

Sub Btn_reject_Click
    Main.Accept_photo = 0
End Sub
 
Top