iOS Question B4XPreferenceDialog not working with B4I for me

tsteward

Well-Known Member
Licensed User
Longtime User
So PreferenceDialog was working and now its not again.
Ive been working in B4A for a while and came back to B4I to keep it up to date only to find I can't initialize Preference Dialog

My code
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    drawer.Initialize(Me, "Drawer", Root, 200dip)
    drawer.CenterPanel.LoadLayout("MainPage")
    xui.SetDataFolder("LARA_data") 'required in B4J
    B4XPages.SetTitle(Me,"LARA 4 alpha")
    B4XPages.GetManager.TransitionAnimationDuration = 0
    #if b4j
        toast.Initialize(Root1)
        prefdialog.Initialize(Root1,"Preferences",400dip,400dip)' B4XPages.MainPage.Root
    #Else
        toast.Initialize(Root)
    #end if
    #if b4a or b4i
        prefdialog.Initialize(Root,"Preferences",clvMakes.AsView.Width,400dip)
    #End If
    Options1.Initialize
    xui.SetDataFolder ("LARA_data")
    prefdialog.LoadFromJson(File.ReadString(File.DirAssets, "SettingsForm.json"))
    LoadSavedData

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