From 24c686b8b56950d5a1881cc660e53816d47e5e03 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Sat, 5 Oct 2013 18:52:06 -0700 Subject: [PATCH] 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 --- packages/PrintSpooler/res/values/styles.xml | 1 - .../printspooler/FusedPrintersProvider.java | 11 +++--- .../printspooler/PrintJobConfigActivity.java | 35 +++++++++++-------- .../printspooler/SelectPrinterFragment.java | 12 ++++--- 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/packages/PrintSpooler/res/values/styles.xml b/packages/PrintSpooler/res/values/styles.xml index f6db6befd9282..d64380aca4ffc 100644 --- a/packages/PrintSpooler/res/values/styles.xml +++ b/packages/PrintSpooler/res/values/styles.xml @@ -30,7 +30,6 @@