summaryrefslogtreecommitdiffstats
path: root/core/java/android/print/PrintAttributes.java
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-09-05 11:27:45 -0700
committerSvetoslav <svetoslavganov@google.com>2013-09-05 11:34:32 -0700
commita36285f3f2f74b1d2d5d0336ffe519ab9f6e062a (patch)
treeec4de38e0c8c64793090e89293b4e3a5acdc64c4 /core/java/android/print/PrintAttributes.java
parentb402fb2fddbee48ef3b518358dc5c86db63f7780 (diff)
downloadframeworks_base-a36285f3f2f74b1d2d5d0336ffe519ab9f6e062a.zip
frameworks_base-a36285f3f2f74b1d2d5d0336ffe519ab9f6e062a.tar.gz
frameworks_base-a36285f3f2f74b1d2d5d0336ffe519ab9f6e062a.tar.bz2
Bug fixes in the print dialog
1. Read/write async tasks of the persistence manger used by the FusedPrintersProvider could be run more that once, so create a new one every time. 2. The fake printer used to save to PDF should not be added to printer history. 3. Removed print preview leftover code from the print dialog. 4. Save to PDF was not working on the second consecutive attempt. 5. The fisrt time the orientation change was ignored - regression Change-Id: I8960ef2cf92dfeeec22fa8751ba8475092b5b65c
Diffstat (limited to 'core/java/android/print/PrintAttributes.java')
-rw-r--r--core/java/android/print/PrintAttributes.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/print/PrintAttributes.java b/core/java/android/print/PrintAttributes.java
index f4cc767..b1e427e 100644
--- a/core/java/android/print/PrintAttributes.java
+++ b/core/java/android/print/PrintAttributes.java
@@ -556,7 +556,7 @@ public final class PrintAttributes implements Parcelable {
* @return New instance in landscape orientation.
*/
public MediaSize asPortrait() {
- return new MediaSize(mId, mPackageName, mLabel,
+ return new MediaSize(mId, mLabel, mPackageName,
Math.min(mWidthMils, mHeightMils),
Math.max(mWidthMils, mHeightMils),
mLabelResId);
@@ -569,7 +569,7 @@ public final class PrintAttributes implements Parcelable {
* @return New instance in landscape orientation.
*/
public MediaSize asLandscape() {
- return new MediaSize(mId, mLabel,
+ return new MediaSize(mId, mLabel, mPackageName,
Math.max(mWidthMils, mHeightMils),
Math.min(mWidthMils, mHeightMils),
mLabelResId);