OSDN Git Service

Delay callback from printerRegistry after Constr.
authorPhilip P. Moltmann <moltmann@google.com>
Thu, 28 Apr 2016 22:11:26 +0000 (15:11 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Thu, 28 Apr 2016 22:11:26 +0000 (15:11 -0700)
commit3c757036a3c0425ccabadb92e6e609bb2ea0a777
tree5efa8c071c69fca2961fdb0f756fe3d78b4ac35a
parent1fe7ed557de90c6992f6d36a485cd63b651a51dd
Delay callback from printerRegistry after Constr.

If the leader inside of the printer registry can immediately initalize
the callback is called in the same thread as the contructor is
executing. Hence in this case the mPrinterRegistry field is used before
written.

Change-Id: I45239d2792f6c31ec215ddb01131038882ff0136
packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java