of pages. If the printing app declares more pages than the print preview pdf has we used to throw an exception in the PDFManupulationService. This caused the bitmap to be never written and the read-bitmap function to hang forever. This was because read() return 0 meaning "pipe is closed" which lead to an infinite loop. Now a read of 0 page might cause an exception if the page is not fully read. This exception then causes the preview_page_error to be displayed. Bug: 27556666 Change-Id: I7b9de50dce930629e8d38efd4e2659a00b70cc4e
26 lines
1013 B
XML
26 lines
1013 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 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.
|
|
-->
|
|
|
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:width="96dp"
|
|
android:height="96dp"
|
|
android:viewportWidth="96.0"
|
|
android:viewportHeight="96.0">
|
|
<path
|
|
android:fillColor="#C8CCCE"
|
|
android:pathData="M4,84H92L48,8 4,84zM52,72h-8v-8h8v8zM52,56H44V40h8v16z"/>
|
|
</vector>
|