android - setVisibility not working -


this question has answer here:

i trying hide button if logged in user donor. have code this.

string typ = user.get("type").tostring();     log.d("before checking type", typ);      if (typ == "donor"){          ne.setvisibility(view.gone);         //ne.setenabled(false);     } 

in log, result donor, know call database working. button need hide, doesn't hide. knows why?

change to:

if (typ.equals("donor")) 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -