110850534c9e2949857133437cf1cd9af82721ab1Adam Powell/* 210850534c9e2949857133437cf1cd9af82721ab1Adam Powell * Copyright (C) 2015 The Android Open Source Project 310850534c9e2949857133437cf1cd9af82721ab1Adam Powell * 410850534c9e2949857133437cf1cd9af82721ab1Adam Powell * Licensed under the Apache License, Version 2.0 (the "License"); 510850534c9e2949857133437cf1cd9af82721ab1Adam Powell * you may not use this file except in compliance with the License. 610850534c9e2949857133437cf1cd9af82721ab1Adam Powell * You may obtain a copy of the License at 710850534c9e2949857133437cf1cd9af82721ab1Adam Powell * 810850534c9e2949857133437cf1cd9af82721ab1Adam Powell * http://www.apache.org/licenses/LICENSE-2.0 910850534c9e2949857133437cf1cd9af82721ab1Adam Powell * 1010850534c9e2949857133437cf1cd9af82721ab1Adam Powell * Unless required by applicable law or agreed to in writing, software 1110850534c9e2949857133437cf1cd9af82721ab1Adam Powell * distributed under the License is distributed on an "AS IS" BASIS, 1210850534c9e2949857133437cf1cd9af82721ab1Adam Powell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1310850534c9e2949857133437cf1cd9af82721ab1Adam Powell * See the License for the specific language governing permissions and 1410850534c9e2949857133437cf1cd9af82721ab1Adam Powell * limitations under the License. 1510850534c9e2949857133437cf1cd9af82721ab1Adam Powell */ 1610850534c9e2949857133437cf1cd9af82721ab1Adam Powell 1710850534c9e2949857133437cf1cd9af82721ab1Adam Powell 1810850534c9e2949857133437cf1cd9af82721ab1Adam Powellpackage android.support.v4.view; 1910850534c9e2949857133437cf1cd9af82721ab1Adam Powell 2010850534c9e2949857133437cf1cd9af82721ab1Adam Powellimport android.view.LayoutInflater; 2110850534c9e2949857133437cf1cd9af82721ab1Adam Powell 2210850534c9e2949857133437cf1cd9af82721ab1Adam Powellclass LayoutInflaterCompatLollipop { 2310850534c9e2949857133437cf1cd9af82721ab1Adam Powell static void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { 2410850534c9e2949857133437cf1cd9af82721ab1Adam Powell inflater.setFactory2(factory != null 2510850534c9e2949857133437cf1cd9af82721ab1Adam Powell ? new LayoutInflaterCompatHC.FactoryWrapperHC(factory) : null); 2610850534c9e2949857133437cf1cd9af82721ab1Adam Powell } 2710850534c9e2949857133437cf1cd9af82721ab1Adam Powell} 28