OSDN Git Service

Fix settings crash in print job screen.
authorSvetoslav <svetoslavganov@google.com>
Thu, 11 Sep 2014 21:30:13 +0000 (14:30 -0700)
committerSvetoslav <svetoslavganov@google.com>
Thu, 11 Sep 2014 21:30:18 +0000 (14:30 -0700)
commit85dcef12263f3cbae05240a155e92e7cf386d58f
tree804c1e2c0841c588ca94949068668e81d71bd2f0
parent0a11f60595a729e261b0dcfbbecca7e0ec8470ac
Fix settings crash in print job screen.

The code was looking up the print job from the print manager
based on the lifecycle event of the hosting fragment. There
was a case missing and the print job not initialized on
rotation. This change looks up the job lazily making the
code more robust.

bug:17471952

Change-Id: I00075e161f69ca711bac6857f5ec00c20b5b17a0
src/com/android/settings/print/PrintJobSettingsFragment.java