Show Persistent notification only when connected to pu wifi

No, I am not removing that option. This snippet is only accessing the values of that variables and it already has been done in onCreate method.