Hides gallery button when entering the app through activity or secure mode