This feature alleviates worries when retrieving your phone from your pocket.
Prevent Accidental Actions on OPPO A37 (A37fw) as follows:
Step 1: Navigate to 'Settings' and choose 'Gestures & motions'.

Go to 'Settings' and choose 'Gestures & motions'.
Step 2: Enable 'Prevent Accidental Actions'.

Enable 'Prevent Accidental Actions'.
That concludes the setup process. Wishing you all success.
