He wasn’t a good friend if he doesn’t talk to you anymore for this reason!Only you should decide when and to whom you want to reveal your sexual preferences or identity.
I am bi and it wasn't until later in life that I confided to a friend. Big mistake; he opened his mouth and we no longer have any connection.
My lesson learned; it is nobody's business except mine !!
Not being able to express yourself is not the right lesson