OSDN Git Service

Show unavailable printers disabled and grayed out.
authorSvetoslav Ganov <svetoslavganov@google.com>
Tue, 8 Oct 2013 05:17:30 +0000 (22:17 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Tue, 8 Oct 2013 16:08:19 +0000 (09:08 -0700)
commit69b91e0ecb8cef95c030f5076779e07d363a45f2
tree230c7df684d84a8f5679c3bb8b662017df48ec38
parentbe5ba9a255e258e03925bb651e5563625ddf6d59
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
packages/PrintSpooler/res/layout/printer_dropdown_item.xml
packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java
packages/PrintSpooler/src/com/android/printspooler/SelectPrinterFragment.java