Prevent crash when multiple Screenshot request

Symptom:
Force close is occurred when tapping "Screenshot" in Accessibility menu
after tapping "Screenshot" in "Power" icon.

Root Cause:
NPE was occurred, because Screenshot request was comming from multiple
processes at same time. Screenshot Service is designed to work as serial
and ScreenshotHelper which has exclusive control doesn't work well.

Solution:
Added exclusive control in Service.

Bug: 119642404
Change-Id: Idd345be100f9af22f958735d3eb67066769b4a64
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
1 file changed