conditional in onFocus looks for int not boolean