OSDN Git Service

Fixed corner-case scenario where a screenshot is finished after the share
authorFelipe Leme <felipeal@google.com>
Wed, 6 Jan 2016 17:57:23 +0000 (09:57 -0800)
committerFelipe Leme <felipeal@google.com>
Wed, 6 Jan 2016 18:14:36 +0000 (10:14 -0800)
commit2288129d5208cd26ab41191db69a418d15ead9ee
tree20442a2632b4a36b171b979d3f8aa955fc7567e8
parent4bd4f40fb21dbf24d0b1d7c73fc1e2c6bd242f06
Fixed corner-case scenario where a screenshot is finished after the share
notification is sent.

Prior to this change, if a screenshot finished after the share
notification was sent, it would replace the share notification with a
progress notification, and the share notification would never be sent
again.

Also improved the test cases that automatically generate a screenshot
but don't use it to wait for the screenshot to finish before proceeding,
otherwise it could cause a future test to fail (if the screenshot is
finished after the initial test is completed).

Change-Id: I6e2a6549ebb48e5bebf5aa78d1bda94404c1812b
packages/Shell/src/com/android/shell/BugreportProgressService.java
packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java