If you have tasker on Android or GOS there's a download for it called 'chop to flashlight' and can adjust the sensitivity so it doesn't turn on in your pocket or bag.
If you have tasker on Android or GOS there's a download for it called 'chop to flashlight' and can adjust the sensitivity so it doesn't turn on in your pocket or bag.