OSDN Git Service

Bug fixes in the printer dialog activity and fused printer loader.
authorSvetoslav Ganov <svetoslavganov@google.com>
Tue, 3 Sep 2013 07:11:58 +0000 (00:11 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Tue, 3 Sep 2013 15:42:17 +0000 (08:42 -0700)
commit9186d0cb2bd325d9b52da15dbd513937c1e42caa
tree8237bc1c648c916b670935d3f9bc0cd6c9d56965
parent6bd20bc46c762860cac852888df5adf718f2be24
Bug fixes in the printer dialog activity and fused printer loader.

1. Fused printers loader was not using the discovered printers to update the
    historical ones. Now if a historical printer is discovered we update its state
    with the discovered, i.e. most recent, information.

2. Fixed a bug in the destination adapter of the print job config dialog that
    was leading to a crash if all printers item is selected when there are no
    discovered printers.

3.  Updated the add printers asset in the all printers screen.

4. Historical printers were not persisted by the print dialog activity.

5. Reduced the number of printers we send per transation to avoid the binder
   transaction size limit. Added sending of printers in chunks in a place
   this was missing.

Change-Id: I88b54888360bc0e53b06bd260c2b832d0d6454b6
core/java/android/printservice/PrinterDiscoverySession.java
packages/PrintSpooler/res/drawable-hdpi/ic_menu_add.png [deleted file]
packages/PrintSpooler/res/drawable-mdpi/ic_menu_add.png [deleted file]
packages/PrintSpooler/res/drawable-xhdpi/ic_menu_add.png [deleted file]
packages/PrintSpooler/res/menu/select_printer_activity.xml
packages/PrintSpooler/src/com/android/printspooler/FusedPrintersProvider.java
packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java
services/java/com/android/server/print/RemotePrintService.java
services/java/com/android/server/print/UserState.java