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
39 lines
1.5 KiB
XML
39 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2013 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<resources>
|
|
|
|
<style name="PrintOptionTitleTextAppearance">
|
|
<item name="android:textStyle">normal</item>
|
|
<item name="android:textSize">14sp</item>
|
|
<item name="android:textAllCaps">true</item>
|
|
<item name="android:textColor">@color/print_option_title</item>
|
|
</style>
|
|
|
|
<style name="PrintOptionSpinnerStyle">
|
|
<item name="android:paddingTop">0dip</item>
|
|
<item name="android:paddingBottom">0dip</item>
|
|
<item name="android:minHeight">?android:attr/listPreferredItemHeightSmall</item>
|
|
</style>
|
|
|
|
<style name="PrintOptionEditTextStyle">
|
|
<item name="android:minHeight">?android:attr/listPreferredItemHeightSmall</item>
|
|
<item name="android:singleLine">true</item>
|
|
<item name="android:ellipsize">end</item>
|
|
</style>
|
|
|
|
</resources>
|