373 Commits

Author SHA1 Message Date
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
4208b4088b am 6f71ed5b: Merge "Sometimes the print button not enabled and an accessibility fix." into klp-dev
* commit '6f71ed5b58a9bcf23fd252d13cc4206d38921960':
  Sometimes the print button not enabled and an accessibility fix.
2013-10-10 10:14:26 -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
ebec46847d Sometimes the print button not enabled and an accessibility fix.
1. Sometimes the print button is not enabled after selecting a printer
   from the all printers activity. This was happening after a printer
   was selected, we had to do a layout due to changed print attributes
   (because of the new printer's capabilities), and the content did not
   change. In this case we did not call the updateUi function which
   enables the print button after layout is completed.

2. The accessibility code in the all printers activity was not checking
   whether accessibility is on and doing some unnecessary work - not sending
   events though but still. Further, the delayed runnable that was
   doing the accessibilty announcements was not removed when the activity
   was paused.

bug:10983508

Change-Id: Ib263116a3e21e4c75a25aa051cecbd9194417319
2013-10-10 07:33:02 +00: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
e039b0fe67 am e0ac69db: am ea7f975b: am dcd05b44: Merge "Fix a crash in the select printers activity." into klp-dev
* commit 'e0ac69db93991e80be866e54571cfe6c15d9dc4f':
  Fix a crash in the select printers activity.
2013-10-08 16:02:58 -07:00
Svetoslav
e0ac69db93 am ea7f975b: am dcd05b44: Merge "Fix a crash in the select printers activity." into klp-dev
* commit 'ea7f975b957e3361211e250abdc3e46d995001cf':
  Fix a crash in the select printers activity.
2013-10-08 14:35:16 -07:00
Svetoslav
ea7f975b95 am dcd05b44: Merge "Fix a crash in the select printers activity." into klp-dev
* commit 'dcd05b440d81ededd567a417a6e10a02ccdfa07b':
  Fix a crash in the select printers activity.
2013-10-08 14:32:19 -07:00
Svetoslav
53e8a26d61 Fix a crash in the select printers activity.
When the search view is attached and detached we announce that
 for accessibility. The trouble is that if the activity is being
 torn down we are trying to access resources from a fragment that
 is detached and the qcrash occurs. This change does not try to
 access resources if the activity is finishing and also we do not
 load resource strings if accessibility is not enabled.

bug:11127814

Change-Id: I4a47a8ed3b6a13544cf17b4395560246a33f0e2d
2013-10-08 12:05:24 -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
Svetoslav Ganov
c2242aac0c Merge "Show unavailable printers disabled and grayed out." into klp-dev 2013-10-08 16:34:59 +00:00
Svetoslav Ganov
92f8648ebd Merge "Make the print dialog floating." into klp-dev 2013-10-08 16:32:52 +00:00
Svetoslav Ganov
69b91e0ecb Show unavailable printers disabled and grayed out.
1. If a printer is not available it has to disabled and grayed out.

2. Cancle a print job if the app does not provide the requested pages.

3. Fix current printer selection flicker when the print dialog is
   showing up. Often the current printer is initially set to the user's
   favorite and then it is changed back to the PDF one.

bug:10983508

Change-Id: I8d53eb992cf1c92675ec09f61b2ec272b962fa68
2013-10-08 09:08:19 -07:00
Svetoslav Ganov
b20d63a671 Make the print dialog floating.
The print dialog was full-screen which was not really needed and was
causing the dialog to jump instead of animate up/down when the IME
shows/hides.

bug:11116648

Change-Id: Ifb46fd80a90948270a1fa9c875258b8d0cdfc111
2013-10-07 18:21:59 -07:00
Baligh Uddin
8a4bd3ab3d Import translations. DO NOT MERGE
Change-Id: Ic6acf9da0bedd418f4fb9b30e5ee08058a676736
Auto-generated-cl: translation import
2013-10-07 09:23:18 -07:00
Baligh Uddin
a5ea69ff28 Import translations. DO NOT MERGE
Change-Id: Ie31c027871b65270af282ba9253c35be93d7490d
Auto-generated-cl: translation import
2013-10-07 09:22:06 -07:00
Baligh Uddin
a44c31bda0 Import translations. DO NOT MERGE
Change-Id: I107cb20c67c52a5d2c6d82cb31f5ac41a75cdf4d
Auto-generated-cl: translation import
2013-10-07 09:20:44 -07:00
Svetoslav Ganov
5b9c63886c am d64d41b3: am 719e486f: am 9470cd95: Merge "Polish print dialog accessibility." into klp-dev
* commit 'd64d41b3345aefd1a73512944e33a38d29d9b15c':
  Polish print dialog accessibility.
2013-10-06 18:34:47 -07:00
Svetoslav Ganov
f035c92ee5 am 016e163f: am 13c64b1d: am 253b628d: Merge "Update all printers activity\'s empty state and avoid selected printer flicker." into klp-dev
* commit '016e163f301158c5a0243830e7517866e7d14cc5':
  Update all printers activity's empty state and avoid selected printer flicker.
2013-10-06 18:34:43 -07:00
Svetoslav Ganov
0168a25414 am f3f27382: am f2bbe037: am 589a5505: Merge "Update the empty state for the "all printers activity"" into klp-dev
* commit 'f3f27382830d29d0ba045f5c2680e2f6831ae274':
  Update the empty state for the "all printers activity"
2013-10-06 18:34:39 -07:00
Svetoslav Ganov
a4b913aa10 am 22df192a: am 455def39: am a99cedc6: Merge "Update the "add print service" dialog as per UX spec." into klp-dev
* commit '22df192aaf1875ebd534dfc0523b9012cee61eac':
  Update the "add print service" dialog as per UX spec.
2013-10-06 18:34:36 -07:00
Svetoslav Ganov
d64d41b334 am 719e486f: am 9470cd95: Merge "Polish print dialog accessibility." into klp-dev
* commit '719e486f54b668d13680552f96558ee30d220a00':
  Polish print dialog accessibility.
2013-10-06 18:32:31 -07:00
Svetoslav Ganov
016e163f30 am 13c64b1d: am 253b628d: Merge "Update all printers activity\'s empty state and avoid selected printer flicker." into klp-dev
* commit '13c64b1d957b65a0cc0fc8e9ac8963b4e850baad':
  Update all printers activity's empty state and avoid selected printer flicker.
2013-10-06 18:32:28 -07:00
Svetoslav Ganov
f3f2738283 am f2bbe037: am 589a5505: Merge "Update the empty state for the "all printers activity"" into klp-dev
* commit 'f2bbe03726df6dd24a34444ec3a583bf1f23d886':
  Update the empty state for the "all printers activity"
2013-10-06 18:32:25 -07:00
Svetoslav Ganov
22df192aaf am 455def39: am a99cedc6: Merge "Update the "add print service" dialog as per UX spec." into klp-dev
* commit '455def3967109c7553625bc0985c0699057afcb2':
  Update the "add print service" dialog as per UX spec.
2013-10-06 18:32:22 -07:00
Svetoslav Ganov
56ddf1ffa5 Polish print dialog accessibility.
bug:10983508

Change-Id: I7391e06b661caac18d04ae279639ff447701f151
2013-10-05 19:56:19 -07:00
Svetoslav Ganov
24c686b8b5 Update all printers activity's empty state and avoid selected printer flicker.
1. Updated the empty state of the all printers activity to show no printers message
   if the user is searching and there are no matches and a searching for printers
   message if the user is not filtering the printers list.

2. Adding the fake PDF printer after the historical printers are loaded to avoid the case
   where we select the PDF printer and immediately after that the most used printer is
   selected resulting in an undesirable UI flicker.

3. Fixed a bug where if the most used printer which is initially considered unavailable
   is reported by the print service as available but the UI is not properly updated
   leaving the user in no way to click on the print button.

bug: 10983508

Change-Id: I60fdb7761332850fd5b9ffc0cb572a6213024dba
2013-10-05 19:18:08 -07:00
Svetoslav Ganov
264c566a7f Update the empty state for the "all printers activity"
The empty state is now showing searching for printers hint if
the user is not searching, otherwise the empty state's hint is
a searching for printers message.

bug:10983508

Change-Id: I3df79c167546998c8055d9ff85efa8b460a15e48
2013-10-05 12:58:22 -07:00
Svetoslav Ganov
0ea7d1e869 Update the "add print service" dialog as per UX spec.
The dialog button is now the last item in the adapter if the
search for print service settings is not empty and resolves
to an intent.

bug:10983508

Change-Id: I348e1ede1097d6f3b78c72e871bf3097b99004b6
2013-10-05 11:56:01 -07:00
Svetoslav
45cbf1fd27 am 06aecf1b: am 9dd0b996: am fd65373d: Merge "Print UI tweaks." into klp-dev
* commit '06aecf1bcb936c60d03b4c5f30f2fc1a113f076a':
  Print UI tweaks.
2013-10-04 18:08:46 -07:00
Svetoslav
06aecf1bcb am 9dd0b996: am fd65373d: Merge "Print UI tweaks." into klp-dev
* commit '9dd0b996f93413ac44b5d8195f11b29af34663e2':
  Print UI tweaks.
2013-10-04 18:05:14 -07:00
Svetoslav
5ab717f21a Print UI tweaks.
1. The refresh button in a print notification was using
   wrong asset.

2. If the page count is unknown, just not show the page
   count instead unknown.

bug:10983508

Change-Id: I15f1fcbff60fe1f30d37868864da41550bb14487
2013-10-04 17:50:31 -07:00
Svetoslav Ganov
2829955b6c am 0d9ff161: am 538df343: am 331f9e79: Merge "Print attributes hint not honored." into klp-dev
* commit '0d9ff1613a290a0c9b197a099c898ccc9cc5f60c':
  Print attributes hint not honored.
2013-10-04 17:36:21 -07:00
Svetoslav Ganov
0d9ff1613a am 538df343: am 331f9e79: Merge "Print attributes hint not honored." into klp-dev
* commit '538df3437b80d15b07cda2464b2ae4e5bae8219b':
  Print attributes hint not honored.
2013-10-04 15:14:15 -07:00
Svetoslav Ganov
331f9e79ad Merge "Print attributes hint not honored." into klp-dev 2013-10-04 22:08:25 +00:00
Svetoslav Ganov
7be27acac9 Print attributes hint not honored.
1. Initially we have a single printer, the fake PDF printer, and
   wait for printers to be discovered. This printer was handling
   only a couple of media sizes. Hence, if the app provides a
   media size hint and the PDF printer does not support it, we
   were essentially ignoring the suggested media size since it
   was not supported by the selected printer and we fell back to
   the default paper size for that printer. The fake PDF printer
   should support all predefined media sizes.

2. The list of available paper sizes was shown in the order they
   are added ignoring the current locale. It is much better user
   experience if the media sizes used in the current locale are
   shown at the top and all others after that. Also the media
   sizes for the current locale should be alphabetically ordered
   so the user can quickly find the desired one.

3. The orientation was reset on media size or printer change.

bug:10564537

Change-Id: Iaa0d42242730ce69cea3effd4d0f4bc087068804
2013-10-04 11:45:15 -07:00
Baligh Uddin
21201f4e0d Merge "Import translations. DO NOT MERGE" 2013-10-04 18:12:57 +00:00
Svetoslav Ganov
b0215287a8 am 57f1c60f: am 2658f35a: am 6bf10299: Merge "Deleting print job files when we do not have to." into klp-dev
* commit '57f1c60f41404b3fe1c7f10e9e81576a027c2c38':
  Deleting print job files when we do not have to.
2013-10-04 11:11:16 -07:00
Svetoslav
a7e6ddb608 am 6077037a: am 2f6aabd7: am 5c126892: Merge "Print UI tweaks as per UX request." into klp-dev
* commit '6077037abf6f44390e762e7f302373d435db71f8':
  Print UI tweaks as per UX request.
2013-10-04 11:11:03 -07:00
Baligh Uddin
5e3d3ba85c Import translations. DO NOT MERGE
Change-Id: Ia6e68f8160731c8366dc09eba214343ef204bb1b
Auto-generated-cl: translation import
2013-10-04 11:04:38 -07:00
Baligh Uddin
3eb6b8d626 Import translations. DO NOT MERGE
Change-Id: Id91951dbb1084dd04fd93aa1cd26b6b558ff33ef
Auto-generated-cl: translation import
2013-10-04 11:02:34 -07:00
Svetoslav Ganov
57f1c60f41 am 2658f35a: am 6bf10299: Merge "Deleting print job files when we do not have to." into klp-dev
* commit '2658f35a5e58c65b9d5ff063f16a22dae4472669':
  Deleting print job files when we do not have to.
2013-10-04 09:53:16 -07:00
Svetoslav Ganov
2658f35a5e am 6bf10299: Merge "Deleting print job files when we do not have to." into klp-dev
* commit '6bf1029900d09d0432fb82f8c076bdb3eefc1f6c':
  Deleting print job files when we do not have to.
2013-10-04 09:51:40 -07:00
Svetoslav Ganov
6bf1029900 Merge "Deleting print job files when we do not have to." into klp-dev 2013-10-04 16:50:53 +00:00