1479dd28f2936062d37166a949419d332053af44cAlan Viverette/* 2479dd28f2936062d37166a949419d332053af44cAlan Viverette * Copyright (C) 2014 The Android Open Source Project 3cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * 4cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * Licensed under the Apache License, Version 2.0 (the "License"); 5cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * you may not use this file except in compliance with the License. 6cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * You may obtain a copy of the License at 7cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * 8cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * http://www.apache.org/licenses/LICENSE-2.0 9cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * 10cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * Unless required by applicable law or agreed to in writing, software 11cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * distributed under the License is distributed on an "AS IS" BASIS, 12cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * See the License for the specific language governing permissions and 14cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn * limitations under the License. 15cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn */ 16cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn 17575e098da5bc16ff8b95ca080284253fd206fe12Adam Powellpackage android.support.v4.content; 18575e098da5bc16ff8b95ca080284253fd206fe12Adam Powell 19575e098da5bc16ff8b95ca080284253fd206fe12Adam Powellimport android.content.Context; 20479dd28f2936062d37166a949419d332053af44cAlan Viveretteimport android.graphics.drawable.Drawable; 21479dd28f2936062d37166a949419d332053af44cAlan Viverette 225525d0e30d8d9d068790e9420a433f63dd1f0e00Christopher Tateimport java.io.File; 235525d0e30d8d9d068790e9420a433f63dd1f0e00Christopher Tate 24479dd28f2936062d37166a949419d332053af44cAlan Viveretteclass ContextCompatApi21 { 25479dd28f2936062d37166a949419d332053af44cAlan Viverette public static Drawable getDrawable(Context context, int id) { 26479dd28f2936062d37166a949419d332053af44cAlan Viverette return context.getDrawable(id); 27479dd28f2936062d37166a949419d332053af44cAlan Viverette } 285525d0e30d8d9d068790e9420a433f63dd1f0e00Christopher Tate 295525d0e30d8d9d068790e9420a433f63dd1f0e00Christopher Tate public static File getNoBackupFilesDir(Context context) { 305525d0e30d8d9d068790e9420a433f63dd1f0e00Christopher Tate return context.getNoBackupFilesDir(); 315525d0e30d8d9d068790e9420a433f63dd1f0e00Christopher Tate } 32c40d36383f21a8ad199f440b1f233c923910e82aJeff Sharkey 33c40d36383f21a8ad199f440b1f233c923910e82aJeff Sharkey public static File getCodeCacheDir(Context context) { 34c40d36383f21a8ad199f440b1f233c923910e82aJeff Sharkey return context.getCodeCacheDir(); 35c40d36383f21a8ad199f440b1f233c923910e82aJeff Sharkey } 36479dd28f2936062d37166a949419d332053af44cAlan Viverette} 37