Finger on the trigger while re-holstering.
My guess is the drawstring on a jacket with that plastic lock thing.
This is one of the reasons I dont care for striker fired firearms, when reholstering most hammer fired guns you can stare at the hammer while putting the firearm away, if it starts to move you stop.