Android Question [RESOLVED] AS Settings WobbleMenu show and hide

sigster

Active Member
Licensed User
Longtime User
Hi
I am try to hide and show WobbleMenu from AS Settings but it crash


B4X:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String b4a.ljosleidari.wobblemenu._setvisible(boolean, boolean)' on a null object reference


B4X:
----> In B4XMainPage Class_Globals
     Public WobbleMenu1 As WobbleMenu

----> in B4XMainPage B4XPage_Created

    WobbleMenu1.SetTabTextIcon(1,"Close",Chr(0xF00D),Typeface.FONTAWESOME)
    WobbleMenu1.SetTabTextIcon(2,"Home",Chr(0xF015),Typeface.FONTAWESOME)
    WobbleMenu1.SetTabTextIcon(3,"Back",Chr(0xF102),Typeface.FONTAWESOME)

    WobbleMenu1.SetCurrentTab2(2, False)


----> In settings Class_Globals I add
    Public MP As B4XMainPage
    
Case "PropertyName_5"
            MP.WobbleMenu1.SetVisible(False,False)

Regards
Sigster
 
Top