OSDN Git Service

Fixing issue where screenshot notification remains non-dismissible.
authorWinson <winsonc@google.com>
Thu, 10 Mar 2016 22:00:14 +0000 (14:00 -0800)
committerWinson <winsonc@google.com>
Fri, 11 Mar 2016 18:39:41 +0000 (10:39 -0800)
commit44dbe294fbf06a1def61c48e758621e61ce23b08
tree48f7e373d26b2dfe73808c89e7ab55dd03fd3921
parentc7aa65b8d5e1596b8c1e11ad676725943169d272
Fixing issue where screenshot notification remains non-dismissible.

- Ensure that we start the screenshot as a foreground service to reduce
  likelihood that it is killed while taking a screenshot.
- If the screenshot process times out or gets killed for any reason,
  ensure that we update the notification with an appropriate error
  message.

Bug: 27389179
Change-Id: I5007bda95538044bc753e4ceffd2f59a069c857b
packages/SystemUI/AndroidManifest.xml
packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotServiceErrorReceiver.java [new file with mode: 0644]
services/core/java/com/android/server/policy/PhoneWindowManager.java