Prevent Touch Screen Lock during Activity Recording

Hi!
I'm developing an app to log tennis scores during the game while also recording activity using ActivityRecording.createSession()
Since this makes the app an activity my Vivo Active 6 automatically locks the touch screen after a few seconds and I need to unlock it with the padlock sliding motion. 

Is there a way to prevent the touch screen lock programatically from my app?
Or alternatively from a system level somewhere?