!Support server connection error

Patch NullPointerException due to the failure of findViewById in
setUserVisibleHint().