I have recently faced a problem on Android regarding the flashlight.
When the flashlight is turned 'on', the flashlight icon in the status bar gets highlighted.
When I am turning 'on' the flashlight, it is staying on for sometime and it automatically gets switched off suddenly after some time, but the icon in the status bar still stays highlighted, which indicates that the flashlight is turned on. Same thing happens for the front flashlight.
Can anybody say what can be the reason for this automatic and random turning off of the flashlight ?
Additional information : There is no fixed time interval for the automatic switch off, it is occuring randomly.