commit | 7c053c1e414c77ae28adb90390027e21ce57bc5e | [log] [tgz] |
---|---|---|
author | Svetoslav <svetoslavganov@google.com> | Wed Oct 29 13:49:00 2014 -0700 |
committer | Svetoslav <svetoslavganov@google.com> | Wed Oct 29 13:50:42 2014 -0700 |
tree | bd6e3a6148bd439c49c4227208b013a3ef960626 | |
parent | b7efa04d529b87672b1167341852eca8ee9813c7 [diff] |
Print preview disappearing if printer is changed. This is a regression caused by my previous patch. Change-Id: I80a0b4d880fd4e48e6a44fac303a4c8204e8ec0d
diff --git a/packages/PrintSpooler/src/com/android/printspooler/model/PageContentRepository.java b/packages/PrintSpooler/src/com/android/printspooler/model/PageContentRepository.java index a54334a..35930cd 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/model/PageContentRepository.java +++ b/packages/PrintSpooler/src/com/android/printspooler/model/PageContentRepository.java
@@ -463,7 +463,8 @@ } Intent intent = new Intent(PdfManipulationService.ACTION_GET_RENDERER); intent.setClass(mContext, PdfManipulationService.class); - intent.setData(Uri.fromParts("fake-scheme", String.valueOf(hashCode()), null)); + intent.setData(Uri.fromParts("fake-scheme", String.valueOf( + AsyncRenderer.this.hashCode()), null)); mContext.bindService(intent, AsyncRenderer.this, Context.BIND_AUTO_CREATE); mBoundToService = true; }