1215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann/* 2215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * Copyright (C) 2016 The Android Open Source Project 3215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * 4215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * Licensed under the Apache License, Version 2.0 (the "License"); 5215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * you may not use this file except in compliance with the License. 6215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * You may obtain a copy of the License at 7215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * 8215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * http://www.apache.org/licenses/LICENSE-2.0 9215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * 10215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * Unless required by applicable law or agreed to in writing, software 11215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * distributed under the License is distributed on an "AS IS" BASIS, 12215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * See the License for the specific language governing permissions and 14215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * limitations under the License. 15215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann */ 16215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann 17215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmannpackage android.support.v4.print; 18215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann 19215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmannimport android.content.Context; 208f886fe8c7e23fe6ccb8734167c960c2ed3429c3Alan Viveretteimport android.support.annotation.RequiresApi; 21215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann 22215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann/** 23215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * Api20 specific PrintManager API implementation. 24215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann */ 258f886fe8c7e23fe6ccb8734167c960c2ed3429c3Alan Viverette@RequiresApi(20) 26215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmannclass PrintHelperApi20 extends PrintHelperKitkat { 27215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann PrintHelperApi20(Context context) { 28215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann super(context); 29215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann 30215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann /** 31215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann * There is a bug in the PrintActivity that causes it to ignore the orientation 32215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann */ 33215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann mPrintActivityRespectsOrientation = false; 34215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann } 35215440785861d37af3c6056be63ec2dd8274c452Philip P. Moltmann}