227 Commits

Author SHA1 Message Date
Svetoslav Ganov
a225bbddec am 54e55759: Merge "All printers list has incorrect padding and item height." into klp-dev
* commit '54e5575924d3abba8129268d2d0553efc9a841eb':
  All printers list has incorrect padding and item height.
2013-10-17 11:11:35 -07:00
Svetoslav Ganov
ed513d7e4a All printers list has incorrect padding and item height.
1. We were using the layout for the printer drop down from the
   print dialog as the list item in the all printers activity.
   This layout was not high enough. Now we have a separate
   layout for the drop down and for the list. Note that they
   are almost identical but this is better that writing java
   code to lookup the height from the theme and change it
   programatically since the java code is almost half the size
   of the layout and leads to spreading the logic in both the
   layout file and the java code.

2. The padding of the printers list was not correct. Now it
   mimics the bahavior in settings where we change the padding
   based on orientation.

bug:11261157

Change-Id: I8507c4ee86e9196fe1777cf9577f1886ccfbb1ad
2013-10-17 10:33:14 -07:00
Svetoslav
b196106a43 Printer list items have wrong width.
1. There was leftover code in the printers adapter that was
   hard coding the item width with no reason to do so.

2. Changed the icon view visibility to invisible to allow
   the text of all list items including save to PDF and all
   printers to be left aligned.

bug:11225340

Change-Id: I5b51d0d30577699f5cd73c7c58521358653d135b
2013-10-16 16:45:33 -07:00
Baligh Uddin
19d0448512 Import translations. DO NOT MERGE
Change-Id: I60e1dfdf59f5790fb58d59946d25b2e14cd252bb
Auto-generated-cl: translation import
2013-10-16 14:41:47 -07:00
Baligh Uddin
d232a6f988 Import translations. DO NOT MERGE
Change-Id: I45af8da3d23c08e5f32133336e1805149dbdba64
Auto-generated-cl: translation import
2013-10-16 14:40:31 -07:00
Baligh Uddin
ffe8b79f36 am e1b6b6c5: Bring deleted files from the dead. These files were dropped by the translation pipelines because they do not contain any translated elements, but in reality they are needed.
* commit 'e1b6b6c5816b321864b6a5d72a46860fda8fa7cd':
  Bring deleted files from the dead. These files were dropped by the translation pipelines because they do not contain any translated elements, but in reality they are needed.
2013-10-15 16:00:13 -07:00
Baligh Uddin
e1b6b6c581 Bring deleted files from the dead.
These files were dropped by the translation
pipelines because they do not contain any
translated elements, but in reality they
are needed.

Bug: 11226380
2013-10-15 22:47:02 +00:00
Svetoslav Ganov
0ec8b5282e am 5a736fcd: Merge "Adding a missing resource file." into klp-dev
* commit '5a736fcd203f67c1d4d072fc4e96bb123d083800':
  Adding a missing resource file.
2013-10-15 10:20:25 -07:00
Svetoslav Ganov
5a736fcd20 Merge "Adding a missing resource file." into klp-dev 2013-10-15 17:17:31 +00:00
Svetoslav Ganov
b3918ae418 am 2f807975: am f62e2629: am fe3b58fb: Merge "Update the print spooler action bar icon." into klp-dev
* commit '2f8079753d40e7ee3f3af0d709c83c1e42480349':
  Update the print spooler action bar icon.
2013-10-15 04:02:37 -07:00
Svetoslav Ganov
2d996fb687 Adding a missing resource file.
This is a resource file cotaining the media sizes for the Catalan
locale. Without it the print spooler crashes all the time for that
locale since it cannot construct the PDF printer correctly.

bug:11226380

Change-Id: I7fa9c9bf4ed073e5f4ddf0d0fe9de4998e3467d4
2013-10-15 00:18:13 -07:00
Svetoslav Ganov
2f8079753d am f62e2629: am fe3b58fb: Merge "Update the print spooler action bar icon." into klp-dev
* commit 'f62e262932daaea8b5eda3893a56e2fdbb17ea0a':
  Update the print spooler action bar icon.
2013-10-14 19:00:41 -07:00
Svetoslav Ganov
f62e262932 am fe3b58fb: Merge "Update the print spooler action bar icon." into klp-dev
* commit 'fe3b58fbed7a02d3e9f559ed2f814b42934dc784':
  Update the print spooler action bar icon.
2013-10-14 17:19:36 -07:00
Svetoslav Ganov
2f0ec7af06 Update the print spooler action bar icon.
1. Updated the print spooler icon shown in the action bar
   when searching for printers in the all printers activity.

2. If the current printer's capabilities are not immediately
   available the page count label in the dialog contained the
   argument placeholders.

bug:10983508

Change-Id: Id4f78d6cc31647f043f8e3044ab54f30584d1ebe
2013-10-14 13:49:17 -07:00
Baligh Uddin
7d8b77f036 Import translations. DO NOT MERGE
Change-Id: Ib9ba58f8e1486581d71443234db99a12f925cf0a
Auto-generated-cl: translation import
2013-10-14 09:17:56 -07:00
Baligh Uddin
d898bb0003 Import translations. DO NOT MERGE
Change-Id: Ic05225f9a7ed59b8534c5637187ced07b660252a
Auto-generated-cl: translation import
2013-10-14 09:16:10 -07:00
Baligh Uddin
b48966885e Import translations. DO NOT MERGE
Change-Id: I11e36ca2c03ecbe1a6c99a8cc4f7e4afed3e5427
Auto-generated-cl: translation import
2013-10-11 16:34:38 -07:00
Baligh Uddin
0c679b02b3 Import translations. DO NOT MERGE
Change-Id: I68d6709509ea86f19862bb7ea5319d405dcd7c10
Auto-generated-cl: translation import
2013-10-11 16:33:07 -07:00
Baligh Uddin
3532cb4bba Import translations. DO NOT MERGE
Change-Id: I66efc38992968ef463f4d02f1af101053adfb41e
Auto-generated-cl: translation import
2013-10-11 16:31:18 -07:00
Svetoslav Ganov
ad9f1cce8c am 0d24a810: am 9ce7ae3e: am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev
* commit '0d24a810d2ab6b5f7092aff3d11442debd78396a':
  Added UI for errors during layout and write.
2013-10-11 10:14:39 -07:00
Svetoslav Ganov
0d24a810d2 am 9ce7ae3e: am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev
* commit '9ce7ae3e2001f378199845d4c14b4304a60b3daf':
  Added UI for errors during layout and write.
2013-10-11 10:09:39 -07:00
Svetoslav Ganov
9ce7ae3e20 am f22a767e: Merge "Added UI for errors during layout and write." into klp-dev
* commit 'f22a767e872ec8f5c2531a88819e0f4574c78fe3':
  Added UI for errors during layout and write.
2013-10-11 10:08:00 -07:00
Svetoslav Ganov
f22a767e87 Merge "Added UI for errors during layout and write." into klp-dev 2013-10-11 17:06:12 +00:00
Svetoslav Ganov
caff38821a Added UI for errors during layout and write.
1. If an error happens during layout or write we show an error
   message with the string provided by the application which
   has an OK button to retry or tap outside to cancel.

2. Updated the targed and min SDK version for the PrintSpooler.

bug:11127269

Change-Id: I4301cf3716119b1e33b95347a8451fc1c128343b
2013-10-11 10:04:02 -07:00
Baligh Uddin
260c29d0f0 Merge "Import translations. DO NOT MERGE" 2013-10-11 15:08:35 +00:00
Baligh Uddin
576124688b Merge "Import translations. DO NOT MERGE" into klp-ub-dev 2013-10-11 15:08:29 +00:00
Baligh Uddin
d32e9b7ffb Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-11 15:08:10 +00:00
Svetoslav
d1810e3931 am 9b74a780: am 5b8f01b6: am 466c046f: Merge "Fixing jank when transition from print dialog to generating one." into klp-dev
* commit '9b74a78063707c45ffd1a173de51e215fd7e53b4':
  Fixing jank when transition from print dialog to generating one.
2013-10-10 19:27:00 -07:00
Svetoslav
518fb915d2 resolved conflicts for merge of 93e12a7c to master
Change-Id: I94b488bdfce77c5f0708f5ccdced6800aa939785
2013-10-10 19:24:32 -07:00
Svetoslav
9b74a78063 am 5b8f01b6: am 466c046f: Merge "Fixing jank when transition from print dialog to generating one." into klp-dev
* commit '5b8f01b62a09b001da4959d367fa99e46143791b':
  Fixing jank when transition from print dialog to generating one.
2013-10-10 19:21:03 -07:00
Svetoslav
93e12a7c25 resolved conflicts for merge of 92aa5f4e to klp-dev-plus-aosp
Change-Id: Ib2a3bd688256cb2e6bed13ebac01a31bd2601788
2013-10-10 19:17:27 -07:00
Svetoslav
5b8f01b62a am 466c046f: Merge "Fixing jank when transition from print dialog to generating one." into klp-dev
* commit '466c046f204e98b44506dfb1718f0b56094486f7':
  Fixing jank when transition from print dialog to generating one.
2013-10-10 18:44:22 -07:00
Svetoslav
466c046f20 Merge "Fixing jank when transition from print dialog to generating one." into klp-dev 2013-10-11 01:39:09 +00:00
Baligh Uddin
5239b89ac6 Import translations. DO NOT MERGE
Change-Id: I05a9b361d37d6ec99db7218cb091847ebfb3383b
Auto-generated-cl: translation import
2013-10-10 17:49:39 -07:00
Baligh Uddin
9a9eef2894 Import translations. DO NOT MERGE
Change-Id: I23fe12c08af8ee2eeaf1e6d92a1f8c2ccb69a74e
Auto-generated-cl: translation import
2013-10-10 17:48:26 -07:00
Baligh Uddin
454d33ad89 Import translations. DO NOT MERGE
Change-Id: I902ff15c7df70eef8986dc2dcfbac59551f085fa
Auto-generated-cl: translation import
2013-10-10 17:47:20 -07:00
Svetoslav Ganov
92aa5f4ed2 am 896a9b17: Merge "Adding missing resourcs for the defaul PDF printer media sizes." into klp-dev
* commit '896a9b172627ec318f908e734941afb06cc68169':
  Adding missing resourcs for the defaul PDF printer media sizes.
2013-10-10 16:55:15 -07:00
Svetoslav
3aa2e2b3ab Fixing jank when transition from print dialog to generating one.
Initially we show the print dialog and when the user presses print
we show a generating dialog with an indefinite spinner and a cancel
button. The transition between the two UIs which are really different
layouts show in the print activity is animated. In the middle of
the animation from print to generating UI there was a jump of the
content and an undesired window animation kicking in. This is a
side effect of changing the activity to floating so now changing the
container size was causing window resize and hence animation. Fun!

bug:10983508

Change-Id: I7d88e073c55863b945cdb50822401592f32d44c3
2013-10-10 16:52:54 -07:00
Svetoslav Ganov
896a9b1726 Merge "Adding missing resourcs for the defaul PDF printer media sizes." into klp-dev 2013-10-10 23:52:07 +00:00
Svetoslav Ganov
4071e05b29 am 0a41b054: am bf74156f: am 0ea16e9e: Merge "Coalescing multiple print job notifications." into klp-dev
* commit '0a41b0547b5851121fdc833e08dccf665112fc00':
  Coalescing multiple print job notifications.
2013-10-10 10:20:58 -07:00
Svetoslav Ganov
0a41b0547b am bf74156f: am 0ea16e9e: Merge "Coalescing multiple print job notifications." into klp-dev
* commit 'bf74156f59013dc5c284c224f14a382f813e8825':
  Coalescing multiple print job notifications.
2013-10-10 10:17:40 -07:00
Svetoslav Ganov
bf74156f59 am 0ea16e9e: Merge "Coalescing multiple print job notifications." into klp-dev
* commit '0ea16e9e763b5815707971f503d5408dc1b66c10':
  Coalescing multiple print job notifications.
2013-10-10 10:14:23 -07:00
Svetoslav Ganov
4ba9254824 Adding missing resourcs for the defaul PDF printer media sizes.
Some regions have different media size standards and the fake PDF
printer shows the media sizes for the current locale. Interestingly,
these files were skipped in my previous change while I remember
adding them - maybe did not upload the patch.

bug:11147920

Change-Id: I819ab08fbef08305be89e3acf297328b1a0ded11
2013-10-10 00:52:42 -07:00
Svetoslav Ganov
a18661d592 Coalescing multiple print job notifications.
1. We used to show a single notificaiton for every print job but
   this is against th UX guidelines. Since we have to lead by
   example, this change adds coalescing of multiple notifications.

bug:11155212

2. Print job state callback in the PrintManager now correctly
   invoked on the main thread.

bug:10983508

Change-Id: I906e9e62198fa37cb4d2f71fce07ed475d61e1bd
2013-10-09 23:43:11 -07:00
Svetoslav Ganov
70b7fd36f0 am bd91ecfa: am 84e95d19: am c2242aac: Merge "Show unavailable printers disabled and grayed out." into klp-dev
* commit 'bd91ecfa0de6e4833c0eb7fe3d2b8814eaa6eb80':
  Show unavailable printers disabled and grayed out.
2013-10-08 09:47:47 -07:00
Svetoslav Ganov
a9ac787e97 am 61b1e48a: am 06c74315: am 92f8648e: Merge "Make the print dialog floating." into klp-dev
* commit '61b1e48afc4cb6f9a6bd33baf0022084e496abff':
  Make the print dialog floating.
2013-10-08 09:44:14 -07:00
Svetoslav Ganov
bd91ecfa0d am 84e95d19: am c2242aac: Merge "Show unavailable printers disabled and grayed out." into klp-dev
* commit '84e95d19d2f97dc03b235076e3134541cf161676':
  Show unavailable printers disabled and grayed out.
2013-10-08 09:42:36 -07:00
Svetoslav Ganov
84e95d19d2 am c2242aac: Merge "Show unavailable printers disabled and grayed out." into klp-dev
* commit 'c2242aac0cd6c214422a1507dfd4b4673642cd98':
  Show unavailable printers disabled and grayed out.
2013-10-08 09:39:21 -07:00
Svetoslav Ganov
61b1e48afc am 06c74315: am 92f8648e: Merge "Make the print dialog floating." into klp-dev
* commit '06c74315e920f91feb9536d4aa25e1dc7fc0afa9':
  Make the print dialog floating.
2013-10-08 09:39:04 -07:00
Svetoslav Ganov
06c74315e9 am 92f8648e: Merge "Make the print dialog floating." into klp-dev
* commit '92f8648ebd5b569d489420badd1895df763085ae':
  Make the print dialog floating.
2013-10-08 09:35:45 -07:00