OSDN Git Service

Crash in print spooler when back pressed before content update complted.
authorSvet Ganov <svetoslavganov@google.com>
Wed, 26 Nov 2014 12:09:27 +0000 (04:09 -0800)
committerSvetoslav Ganov <svetoslavganov@google.com>
Tue, 2 Dec 2014 18:43:05 +0000 (18:43 +0000)
commiteaaf0512fcbf03b926cdbbbb7f54df474ecf861a
treeb2f4476afd27fd580d47f5237a17bf2a240494a5
parent5aeed158df65847edac69761630dcd66b8f66eaa
Crash in print spooler when back pressed before content update complted.

We are updating the printed content asynchronously. If the user cancels
printing before the first update is complete the spooler components are
in a destroyed state but we attempt to handle the completed update resulting
in a crash. Now if printing is cancelled we ignore the update result.

bug:18525491

Change-Id: I1ef47a17de19896cba2c7a1dd2bfc205065e0a5a
packages/PrintSpooler/src/com/android/printspooler/model/PageContentRepository.java
packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java