681 Commits

Author SHA1 Message Date
Svetoslav
23d3361e17 Do not change fragments if print activity finishing.
It is possible that we try to switch framents after the print
activity finish method is called. In this state the activity
is going away and trying to perform a fragment operation throws.
Now if we are finishing no fragment opration is performed.

bug:17520007

Change-Id: I0dd935d3cdaeddca31fccf49bd5de97e878abb9d
2014-09-16 10:50:55 -07:00
Baligh Uddin
86b1cdd1fc Import translations. DO NOT MERGE
Change-Id: Ief394aab91b856296c225261cc8215d8bd052092
Auto-generated-cl: translation import
2014-09-16 10:47:46 -07:00
Baligh Uddin
94562a73b2 Import translations. DO NOT MERGE
Change-Id: Ib05ba70bddef4f0c406498a0005da785fcde2138
Auto-generated-cl: translation import
2014-09-16 10:45:41 -07:00
Baligh Uddin
5e85ddd675 Import translations. DO NOT MERGE
Change-Id: Ie9fb53c8c5a93a7059ede5961f2967c1892e0faf
Auto-generated-cl: translation import
2014-09-16 10:44:39 -07:00
Svetoslav
8f06311db6 am 8e0c2e8d: am 88025747: am 42f75e9f: Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev
* commit '8e0c2e8de282664c367cfbd2f36efc0d443481fe':
  Missing or wrong pages in preview when scorlling large docs.
2014-09-16 09:13:04 +00:00
Svetoslav
f52b71ad9e am 6e52e742: am 94e2d608: am 9208a81b: Merge "Page shredder callback invoked on the wrong thread." into lmp-dev
* commit '6e52e742d1e2bd0fece88d114d57ce388ba88157':
  Page shredder callback invoked on the wrong thread.
2014-09-16 09:12:54 +00:00
Svetoslav
73faf7a4b2 am b0797d2a: am ec88fbf7: am c59be126: Merge "Update print preview when a printer becomes available" into lmp-dev
* commit 'b0797d2a95c6046c1281aa74a9cffff905f2e081':
  Update print preview when a printer becomes available
2014-09-16 09:12:48 +00:00
Svet Ganov
aed25e376b am f2352b42: am 3a8c2787: am f7d0cd92: Merge "Fix a crash in pring spooler." into lmp-dev
* commit 'f2352b422054d706549064ccfdcf214d596f47b4':
  Fix a crash in pring spooler.
2014-09-16 08:57:32 +00:00
Svetoslav
653b9cf1a4 am 42f75e9f: Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev
* commit '42f75e9f5cfddb56d23a027bceed2f72e172aae0':
  Missing or wrong pages in preview when scorlling large docs.
2014-09-16 08:44:36 +00:00
Svetoslav
7431b661be am 9208a81b: Merge "Page shredder callback invoked on the wrong thread." into lmp-dev
* commit '9208a81b4bfd22ab73fa9c459653fe6d18a7b8ea':
  Page shredder callback invoked on the wrong thread.
2014-09-16 08:44:29 +00:00
Svetoslav
6419ab4605 am c59be126: Merge "Update print preview when a printer becomes available" into lmp-dev
* commit 'c59be126443a89c23a193e67f633ccccbfd939e0':
  Update print preview when a printer becomes available
2014-09-16 08:44:26 +00:00
Svetoslav
5a51947dee am 42f75e9f: Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev
* commit '42f75e9f5cfddb56d23a027bceed2f72e172aae0':
  Missing or wrong pages in preview when scorlling large docs.
2014-09-16 08:42:51 +00:00
Svetoslav
bff16debdc am 9208a81b: Merge "Page shredder callback invoked on the wrong thread." into lmp-dev
* commit '9208a81b4bfd22ab73fa9c459653fe6d18a7b8ea':
  Page shredder callback invoked on the wrong thread.
2014-09-16 08:42:42 +00:00
Svetoslav
9dd2ff496d am c59be126: Merge "Update print preview when a printer becomes available" into lmp-dev
* commit 'c59be126443a89c23a193e67f633ccccbfd939e0':
  Update print preview when a printer becomes available
2014-09-16 08:42:37 +00:00
Svetoslav
e3cdd4dc6c Merge "Missing or wrong pages in preview when scorlling large docs." into lmp-dev 2014-09-16 06:19:59 +00:00
Svetoslav
f3f963b0be Missing or wrong pages in preview when scorlling large docs.
The bound pages in the adapter were not properly tracked, more
specifically we did not remove pages from the bound set ending
up in a bad state. Also when the printer changes and if the
new one has different page size the content disappears due to
us not notifying for the data set change.

bug:17515670

Change-Id: Iac74e864609012f6804584fa133e87c27dc186a5
2014-09-15 21:07:27 -07:00
Svetoslav
56bdeeeb80 Merge "Page shredder callback invoked on the wrong thread." into lmp-dev 2014-09-16 02:22:22 +00:00
Svetoslav
fb3532eea3 Page shredder callback invoked on the wrong thread.
The code executed in the shredder completion callback must
be called on the main thread but instead it was called on
another one. This led to a crash.

bug:17514533

Change-Id: Id9e86d38a90fedadc60f967b193470fd83eb3362
2014-09-15 19:01:34 -07:00
Svetoslav
e0fa06c088 Update print preview when a printer becomes available
We laizily request printer capabilities and when they are reported
we were not updating the preview and as a result the content was not
rendered, hence pages showing an empty state.

bug:17514117

Change-Id: Icfee7eaa1ab63f5e4d7655d4057ef2110c27cd43
2014-09-15 18:21:14 -07:00
Svet Ganov
4aa35d71ed am f7d0cd92: Merge "Fix a crash in pring spooler." into lmp-dev
* commit 'f7d0cd92c6a049a54efc2e29ec69c34f096be46d':
  Fix a crash in pring spooler.
2014-09-15 22:06:46 +00:00
Svet Ganov
654f9279cc am f7d0cd92: Merge "Fix a crash in pring spooler." into lmp-dev
* commit 'f7d0cd92c6a049a54efc2e29ec69c34f096be46d':
  Fix a crash in pring spooler.
2014-09-15 22:01:47 +00:00
Svet Ganov
f230c5d21b Merge "Fix a crash in pring spooler." into lmp-dev 2014-09-15 20:27:52 +00:00
Svet Ganov
e771caf332 Fix a crash in pring spooler.
If the printer capabilities are reported with a delay which is pretty
common we were trying to evaluate the preview page dimensions without
having a media size resulting in a NPE.

bug:17501953

Change-Id: I6765137f61b8fd060e9eabff07e632875d934963
2014-09-14 20:29:30 -07:00
Baligh Uddin
0fc76f0755 Import translations. DO NOT MERGE
Change-Id: Ifb234cb1ae0c96f393e3b203488f61467d97c267
Auto-generated-cl: translation import
2014-09-14 19:11:15 -07:00
Svetoslav
7cf8907bc5 am 3ddf6652: am cc2f1ab3: am c2281007: Merge "Page content sometimes missing while scrolling." into lmp-dev
* commit '3ddf665212d5306c330e457e35b3e06f254fa315':
  Page content sometimes missing while scrolling.
2014-09-13 19:28:10 +00:00
Svetoslav
16c8e53b33 am c2281007: Merge "Page content sometimes missing while scrolling." into lmp-dev
* commit 'c2281007f190ab197b23484fd087c30955ffdd6b':
  Page content sometimes missing while scrolling.
2014-09-13 18:57:44 +00:00
Svetoslav
2047df6f5f Merge "Page content sometimes missing while scrolling." into lmp-dev 2014-09-13 18:45:52 +00:00
Svet Ganov
7387063b79 am 9a52dac5: am 1fb38aad: am 16238096: Merge changes Ife1c7cb0,I398ff797 into lmp-dev
* commit '9a52dac5ed9432746427f14521d363621efe4531':
  Fixing controls allignment in print UI.
  Fix a crash in print spooler.
2014-09-13 17:54:25 +00:00
Svet Ganov
b5be0803dd am 16238096: Merge changes Ife1c7cb0,I398ff797 into lmp-dev
* commit '16238096409899271f40e4404646412a384b1512':
  Fixing controls allignment in print UI.
  Fix a crash in print spooler.
2014-09-13 17:23:58 +00:00
Svet Ganov
922507026a Fixing controls allignment in print UI.
Making some allignment tweaks based on UX feedback.

bug:17489187

Change-Id: Ife1c7cb0f55eb0398bca4a5e015ace24437ff2a6
2014-09-12 19:54:09 -07:00
Svetoslav
0df1cff1f4 am e01c70a9: am 376926b7: am 60eed0e5: Merge "Fix crash in spooler if printing app dies." into lmp-dev
* commit 'e01c70a99f2d777ddc145639cedd2e8517fce171':
  Fix crash in spooler if printing app dies.
2014-09-13 02:27:31 +00:00
Svetoslav
8a1918c8b2 am 7ee92d90: am ff3e07bd: am 8e925e55: Merge "Fix a crash in print preview on multiple rotations." into lmp-dev
* commit '7ee92d906d257d8c65dcff08414b54d6ec243314':
  Fix a crash in print preview on multiple rotations.
2014-09-13 02:26:25 +00:00
Svet Ganov
05ff998fd8 Fix a crash in print spooler.
A recent bug fix exposed another one where we were not updating
the internal state of the remote print document after it finishes
updating. This resulted in a crash on every print.

bug:16966145

Change-Id: I398ff7976533241e3d4cb6cd27f69cdc25e67be9
2014-09-12 19:25:32 -07:00
Svetoslav
ba46eb6b6d am 60eed0e5: Merge "Fix crash in spooler if printing app dies." into lmp-dev
* commit '60eed0e500c2d5964431d9afd6b72b40040448ed':
  Fix crash in spooler if printing app dies.
2014-09-12 22:31:39 +00:00
Svetoslav
e6ecba59fd Page content sometimes missing while scrolling.
The logic when a page view to request the content had a logical
error and it was getting in a bad state where it never requested
the content anymore. This change simplifies the logic and minimizes
the kept state.

Removed unnecessary calls to recycle for a bitmap as according
to the graphics folks we should not be calling this API anymore.

bug:16966145

Change-Id: Idda8314b43343136d3b867167261790481116fac
2014-09-12 14:31:07 -07:00
Svetoslav
011bdc4006 am 8e925e55: Merge "Fix a crash in print preview on multiple rotations." into lmp-dev
* commit '8e925e55e44b9ebc568f3e0bc59e32a1153ffbef':
  Fix a crash in print preview on multiple rotations.
2014-09-12 21:01:00 +00:00
Svetoslav
2fb64a5cb1 Fix crash in spooler if printing app dies.
bug:16966145

Change-Id: I092c489a7f1b4000a96d3f12f2996ccabf734b9a
2014-09-12 13:55:35 -07:00
Svetoslav
ffec747bec am 01243f18: am 7d3db59d: am 59d0713d: Merge "Fix back button behavior and clean up in print preview activity." into lmp-dev
* commit '01243f18f8530062d8a57158de4a1e47e24d1cf1':
  Fix back button behavior and clean up in print preview activity.
2014-09-12 19:24:21 +00:00
Svet Ganov
a534ebbbf4 am 2e216abb: am 6e0f0619: am 60d4306b: Merge "Fix edit text error state in the print UI." into lmp-dev
* commit '2e216abb8ee1e65a731122df5679f74fdd1873d0':
  Fix edit text error state in the print UI.
2014-09-12 19:23:37 +00:00
Svetoslav
139ba7fb0e Fix a crash in print preview on multiple rotations.
bug:16966145

Change-Id: I8266315bd9253953cb6c3b9dab1ba36f104a74a5
2014-09-12 10:35:38 -07:00
Svetoslav
8c3297ece1 am 59d0713d: Merge "Fix back button behavior and clean up in print preview activity." into lmp-dev
* commit '59d0713d816dd8e9a04885b1907384ba4de6cf19':
  Fix back button behavior and clean up in print preview activity.
2014-09-12 05:04:03 +00:00
Svet Ganov
34e67af34f am 60d4306b: Merge "Fix edit text error state in the print UI." into lmp-dev
* commit '60d4306bfd3125543b1a207c82b78e0bfbe7a8d4':
  Fix edit text error state in the print UI.
2014-09-12 05:03:21 +00:00
Svetoslav
36f6951e32 Merge "Fix back button behavior and clean up in print preview activity." into lmp-dev 2014-09-11 23:24:20 +00:00
Svet Ganov
c946e9ab46 Merge "Fix edit text error state in the print UI." into lmp-dev 2014-09-11 22:15:59 +00:00
Svetoslav
e17123dd6d Fix back button behavior and clean up in print preview activity.
The print preview UI owns and drives the lifecycle of several objects.
These objects were torn down too late resulting in an attempt to use
the activity as a context when it was no longer valid and service unbind
resulting in causing a crash.

Fixed a bug where if the back button is pressed mutiple times when
the print UI is being initialized a crash occurs.

bug:17454041

Change-Id: Ic1455b467586f0ad65f907e2160ec5cfb2d17d05
2014-09-11 14:12:22 -07:00
Svet Ganov
43212264dd Fix edit text error state in the print UI.
If the user input in the print UI is invalid we show an error icon
next to it. The design requires no error message being shown in a
popup but TextView does show the popup all the time.

bug:16966145

Change-Id: I7aa1ec8093bc76e2f440bcb243609e92e049786b
2014-09-11 10:35:26 -07:00
Svetoslav
d8858a22e3 am 72c8cd0e: am 14a1444e: am a6b5869f: Merge "Fix a crash in print spooler." into lmp-dev
* commit '72c8cd0eb7bb1c549dad25bfc43e1954832c0e8e':
  Fix a crash in print spooler.
2014-09-11 17:26:18 +00:00
Svetoslav
26b6c1e5fb am 3a04f3cb: am 7e115924: am 930f4fe4: Merge "Accessibilty support for the print UI." into lmp-dev
* commit '3a04f3cbdf624eda7d4f8a91004c874022523cdd':
  Accessibilty support for the print UI.
2014-09-11 17:26:10 +00:00
Svetoslav
bff7a979a8 am dbd75236: am b875ca77: am 0f2e085d: Merge "RTL support for print UI." into lmp-dev
* commit 'dbd75236e88d2ed43d63d65e57d0b9cb6a7b48af':
  RTL support for print UI.
2014-09-11 17:22:16 +00:00
Svetoslav
ac22532165 am 595b69d2: am deaa395a: am d327046d: Merge "Fix page spacing in preview list." into lmp-dev
* commit '595b69d237316974574fdb76f8175ef87a9f9de6':
  Fix page spacing in preview list.
2014-09-11 17:22:11 +00:00