352 Commits

Author SHA1 Message Date
Svet Ganov
9fb7b07c6c Dimming deselected preview pages
For print preview we show the pages the user selected in the range
affordance but the user can optionally further prune pages to be
printed by deselecting them in the preview. The deselected pages
change elevation and now also are dimmed.

bug:15912256

Change-Id: I53357b8e8b592387bbc26b937eda786bb4660d85
2014-07-14 07:31:07 +00:00
Svet Ganov
48fec5c9a3 Top printer not properly selected.
We keep track of historically used printers and when the print dialog
is opened we load them. We were selecting the first printer before the
historical ones are loaded which led to a case where the PDF printer
is selected and then a better printer appears but we have the PDF one
selected.

Also we were asking the printer spinner for the current printer but
if the data set of the adapter changes and we ask the spinner for the
selection we get a wrong answer because the adapter and the view are
off sync since the view is updated on the next message.

Change-Id: I0c12d2d3b19227a8f6af6e421b92013ec06cc021
2014-07-14 07:15:34 +00:00
Svetoslav
000f88c9e8 Adding back accidentally removed constants
Change-Id: Ib99000da8f31437e7d40eceb69779a0f4c2982e1
2014-07-11 22:54:28 +00:00
Svetoslav
39afc200f2 Remove commented out dead code
Change-Id: I3e59d0ee55fd864ea0d8bc5f99cdb74d9b0e49bb
2014-07-11 22:49:59 +00:00
Svetoslav
1710e0318d Fix print preview rendered page preloading.
After the preview list is scrolled we are preloading the
pages around the ones that are shown, so now if the user
does a slight adjustment (expected after a scroll) the
pages around are rendered. There was an off by one error
and one of the bitmaps of the shown pages was reused and
as a result the wrong content was shown.

Change-Id: If04aebf46bcc637491221c6218005ecc1a7253d2
2014-07-11 22:23:58 +00:00
Svetoslav
53912d07d2 Fix the print button appearance.
Change-Id: Ie19a52eaf08e1e39bb488c5afa2344c72e646b0b
2014-07-11 21:42:06 +00:00
Svetoslav
15cbc8a032 Addressing comments for the print preview feature.
Change-Id: Ib72140a912e22f859258d970e0d1c4ef06e807d5
2014-07-11 16:46:46 +00:00
Svet Ganov
525a66b2bb Adding print preview.
This change adds the pring preview part of the new print UX. The
UI has two parts, the top section is the print options and the
bottom section print preview with a list of pages. The user can
interact only with one of them. When print options are expanded
they cover the preview content and a scrim is laid out on top of
the preview. Tapping the scrim collapses the print options. When
the user types in page ranges and closes the options to look at
the preview, the latter is updated to show only these pages. In
the list of pages the user can further prune pages by deselecting
them.

Change-Id: I0b23d2c598afe2a34400ccfa43e4e935af83c72f
2014-07-09 18:43:38 +00:00
Baligh Uddin
40b9a2a59a Import translations. DO NOT MERGE
Change-Id: I004e0eca54b3f3e8bc06237abcec0790e0eddd57
Auto-generated-cl: translation import
2014-07-05 09:33:02 -07:00
Baligh Uddin
700c8ad6c8 Import translations. DO NOT MERGE
Change-Id: I19ba0a7849975b5f1674a9b04ec1d1bf08c25a9f
Auto-generated-cl: translation import
2014-06-30 14:34:43 +00:00
Baligh Uddin
ae40bcbe61 Import translations. DO NOT MERGE
Change-Id: I14733d99735d38e73451e9df11da28e78d1ac973
Auto-generated-cl: translation import
2014-06-26 11:02:03 -07:00
Baligh Uddin
18f51dddd9 Import translations. DO NOT MERGE
Change-Id: I3e3a10ece8f548783744aaec1c0c705e207701a4
Auto-generated-cl: translation import
2014-06-25 02:32:33 +00:00
Baligh Uddin
e52ee5688d Import translations. DO NOT MERGE
Change-Id: I78454917ebab5e086504ea688c5b6b05991bb27d
Auto-generated-cl: translation import
2014-06-18 09:37:07 -07:00
Baligh Uddin
4a66b07c7f Import translations. DO NOT MERGE
Change-Id: If49c63f7cf5e95fcaba6852dfc44ed702ed625b9
Auto-generated-cl: translation import
2014-06-15 12:54:54 +00:00
Svetoslav
e3bbb3d6c0 Fix NPE in PrintActivity.
It is possible that the orientation is chosen before the media size.
The code handling orientation change was wrognly expecting to have
a selected media size all the time resulting in a NPE.

bug:15512333

Change-Id: I9f2786af314641144a24c1d1363c8d2590b0df57
2014-06-12 10:43:23 -07:00
Ruben Brunk
ef1b1398e9 fixbuild: Remove 'pinned' attr.
Needed by ag/481620

BUG: 15523923
BUG: 15473856

Change-Id: I5e8bf417368b60fcc33c80852e12f27b8c580774
2014-06-11 11:56:58 -07:00
Baligh Uddin
12bfa7cd68 Import translations. DO NOT MERGE
Change-Id: I471ee84c28b6ea15be4e54fd9ec2f7e262fa76ed
Auto-generated-cl: translation import
2014-06-09 09:13:34 -07:00
Baligh Uddin
48798325ed Merge "Import translations. DO NOT MERGE" 2014-06-07 03:10:51 +00:00
Svetoslav
a798c0a984 Refactor printing
Change-Id: I19850154ef2798afff511e4490a268ce38e8cbae
2014-06-06 13:33:16 -07:00
Baligh Uddin
269bfa18f8 Import translations. DO NOT MERGE
Change-Id: I30f36cd83def8e860e1535bdd75f7564e71b97d6
Auto-generated-cl: translation import
2014-06-04 08:10:53 -07:00
Baligh Uddin
ae12a0fbb3 Import translations. DO NOT MERGE
Change-Id: Id7173460a1e17e91f6d119dea4b0f318bf51d78e
Auto-generated-cl: translation import
2014-06-02 09:43:14 -07:00
Geoff Mendal
da506a607e Import translations. DO NOT MERGE
Change-Id: I0ad03f1c00243b191db304b1d7f6974db0f06022
Auto-generated-cl: translation import
2014-05-28 09:32:43 -07:00
Baligh Uddin
c8128b0bd8 Import translations. DO NOT MERGE
Change-Id: Idcca08557f575b7a9f5cb66df19eaa01f7989ac8
Auto-generated-cl: translation import
2014-05-20 08:17:35 -07:00
Ed Heyl
2cf184233b merge master nova by hand, skipped translations
Change-Id: I4bea0bb9e375361f21d995bf4698d5eb6300ecfb
2014-05-14 13:24:53 -07:00
Baligh Uddin
bc3c9ec4ff Import translations. DO NOT MERGE
Change-Id: I7d5f832b6c632d75c580cff1b30d7234c30d64a9
Auto-generated-cl: translation import
2014-05-12 08:25:29 -07:00
Baligh Uddin
d7ee61112e Import translations. DO NOT MERGE
Change-Id: I9c1fa79848e6ddb1190309328e3dd9a5636b3281
Auto-generated-cl: translation import
2014-04-16 14:25:21 -07:00
Alan Viverette
01cefbc5b3 am b325345e: Merge "Switch framework Holo references to Quantum.Light"
* commit 'b325345ef0adf2849350d339de1ec5f92b67b7ae':
  Switch framework Holo references to Quantum.Light
2014-04-02 22:23:17 +00:00
Alan Viverette
3a3395042e am b325345e: Merge "Switch framework Holo references to Quantum.Light"
* commit 'b325345ef0adf2849350d339de1ec5f92b67b7ae':
  Switch framework Holo references to Quantum.Light
2014-04-02 22:18:59 +00:00
Alan Viverette
6259933ec9 Switch framework Holo references to Quantum.Light
Change-Id: Ib545a143f1959b6104adbc9d594dd626851d90b3
2014-04-01 14:57:39 -07:00
Baligh Uddin
456696ac98 Import translations. DO NOT MERGE
Change-Id: I9d33cc058a79b8ea1b265104afbaa0dba76762a8
Auto-generated-cl: translation import
2014-03-24 09:40:09 -07:00
Baligh Uddin
8b6d9fee1f Import translations. DO NOT MERGE
Change-Id: Ic4396a06837a9e5c6f32ec9237567f886bdae8bd
Auto-generated-cl: translation import
2014-03-19 09:41:29 -07:00
Geoff Mendal
554428c327 Import translations. DO NOT MERGE
Change-Id: I997192f031eea02fbad2f41370db984dce84b65c
Auto-generated-cl: translation import
2014-03-17 09:27:08 -07:00
Baligh Uddin
267bba6f64 Import translations. DO NOT MERGE
Change-Id: Ia1ebb3566930294e42b3310a5d8ffa845852fa77
Auto-generated-cl: translation import
2014-01-08 09:01:38 -08:00
Svetoslav
b0d97b87ba PrintSpooler crash if printer is reported to have only one color mode.
bug:11993304

Change-Id: I4932cf1b5b9b89f0cbf97011782ede037e7d814c
2014-01-06 18:00:54 -08:00
Svetoslav
2c1b177dcf Sometimes write may be called twice in a row for the same content.
In a rare case it is possible that on write of a print document
adapter is called twice for the same pages with nothing being
changed. This happens if while doing a write we get an update
request which correctly avoids calling layout on the adapter
but does call on write as we ignore that we are waining for the
requested pages to be written. Fun.

Change-Id: I33d7d26c7c4b083dc7b66bf762697b6dafd1ccc4
2013-12-20 17:10:49 -08:00
Baligh Uddin
38bae539f8 Remove deprecated locales
Bug:11340849
Change-Id: Ib99486303927a6bce308b113d70f8e5b5bce4a13
2013-12-09 22:41:12 +00:00
Dave Langemak
d487eb3c03 am 741c9c74: am d220d820: am c04aa87e: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev
* commit '741c9c74ffead322c349242e3f72e8fd2957bd3d':
  Fix incorrent page range parsing when custom print options used.
2013-11-19 08:43:18 -08:00
Dave Langemak
741c9c74ff am d220d820: am c04aa87e: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev
* commit 'd220d8202e67a82075ee20351657509ca0885b67':
  Fix incorrent page range parsing when custom print options used.
2013-11-19 08:38:55 -08:00
Dave Langemak
d220d8202e am c04aa87e: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev
* commit 'c04aa87e4ac41b6c65dceb7b20d7a7f92c2efec1':
  Fix incorrent page range parsing when custom print options used.
2013-11-19 08:34:57 -08:00
Dave Langemak
c04aa87e4a Merge "Fix incorrent page range parsing when custom print options used." into klp-dev 2013-11-19 16:33:22 +00:00
Baligh Uddin
cff08b4cab Import translations. DO NOT MERGE
Change-Id: I73cde7061a849fa76822f468ec79c7eb9021c9be
Auto-generated-cl: translation import
2013-11-17 16:32:31 -08:00
Baligh Uddin
564fb1b8ce Import translations. DO NOT MERGE
Change-Id: I6eea0f5a4b57c4686d1f6ff4fc137358400651b8
Auto-generated-cl: translation import
2013-11-17 16:30:52 -08:00
Svetoslav Ganov
1a85d9fb24 Fix incorrent page range parsing when custom print options used.
We have APIs for a print service to declare an activity with custom
print options. In this activity the service can add custom properties
as well as change the standard ones such as pages to print. The ranges
of selected pages from the custom activity was incorrectly parsed
resulting in an off by one error in what is shown to the user and as a
result getting an exception when trying to print.

bug:11719051

Change-Id: Id04c94608178895f1d47381a63133f0eba7645e1
2013-11-15 21:52:35 -08:00
Baligh Uddin
5b3574a9aa Merge "Import translations. DO NOT MERGE" 2013-11-15 06:36:35 +00:00
Svetoslav
573f0db661 am 172c5a24: am d2b27cbd: am 6874bfe1: Merge "Created print jobs should not be persisted until they are queued." into klp-dev
* commit '172c5a2473c82dfb72de289011fe615c28c572cd':
  Created print jobs should not be persisted until they are queued.
2013-11-14 22:34:12 -08:00
Baligh Uddin
18658d1863 Import translations. DO NOT MERGE
Change-Id: Ie93ca6d1a6baab26ef47fca55e5d3f27efb5997b
Auto-generated-cl: translation import
2013-11-14 22:33:34 -08:00
Baligh Uddin
2785892dbf Import translations. DO NOT MERGE
Change-Id: I6d1283da139ad2ef60213d83d7ac00939a4bfc04
Auto-generated-cl: translation import
2013-11-14 22:32:08 -08:00
Svetoslav
172c5a2473 am d2b27cbd: am 6874bfe1: Merge "Created print jobs should not be persisted until they are queued." into klp-dev
* commit 'd2b27cbde92dc57b5b6fe9b7434a5189a73dd2b2':
  Created print jobs should not be persisted until they are queued.
2013-11-14 22:30:52 -08:00
Svetoslav
d2b27cbde9 am 6874bfe1: Merge "Created print jobs should not be persisted until they are queued." into klp-dev
* commit '6874bfe19b6bc1522e07e53eb96a07e21d148b41':
  Created print jobs should not be persisted until they are queued.
2013-11-14 22:27:35 -08:00
Svetoslav
885810de69 Created print jobs should not be persisted until they are queued.
Print jobs in a created state should not be persisted. However,
if a print service sets the tag to a print job that is queued,
we were persisting even print jobs in a created state. This
change adds a simple check while persisting to avoid storing
created print jobs.

bug:11696785

Change-Id: Idf28f3634b91fd5bf345f376114af4ed478ed3c6
2013-11-14 18:02:31 -08:00