:jz:
It's important to also note that you shouldn't commit sins in public because you're also harming others
Abu Hurayrah said: I heard the Messenger of Allaah (peace and blessings of Allaah be upon him) say: “All of my ummah will be forgiven except those who sin openly. It is a part of sinning openly when a man does something at night, then the following morning when Allaah has concealed his sin, he says, ‘O So and so, I did such and such last night,’ when all night his Lord has concealed him and the next morning he uncovers what Allaah had concealed.” (Narrated by al-Bukhaari, 5721; Muslim, 2990).
Subhanallah it's so true how actions are judged by intentions may Allah protect us from all forms of hypocrisy