1479dd28f2936062d37166a949419d332053af44cAlan Viverette/*
2479dd28f2936062d37166a949419d332053af44cAlan Viverette * Copyright (C) 2014 The Android Open Source Project
3479dd28f2936062d37166a949419d332053af44cAlan Viverette *
4479dd28f2936062d37166a949419d332053af44cAlan Viverette * Licensed under the Apache License, Version 2.0 (the "License");
5479dd28f2936062d37166a949419d332053af44cAlan Viverette * you may not use this file except in compliance with the License.
6479dd28f2936062d37166a949419d332053af44cAlan Viverette * You may obtain a copy of the License at
7479dd28f2936062d37166a949419d332053af44cAlan Viverette *
8479dd28f2936062d37166a949419d332053af44cAlan Viverette *      http://www.apache.org/licenses/LICENSE-2.0
9479dd28f2936062d37166a949419d332053af44cAlan Viverette *
10479dd28f2936062d37166a949419d332053af44cAlan Viverette * Unless required by applicable law or agreed to in writing, software
11479dd28f2936062d37166a949419d332053af44cAlan Viverette * distributed under the License is distributed on an "AS IS" BASIS,
12479dd28f2936062d37166a949419d332053af44cAlan Viverette * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13479dd28f2936062d37166a949419d332053af44cAlan Viverette * See the License for the specific language governing permissions and
14479dd28f2936062d37166a949419d332053af44cAlan Viverette * limitations under the License.
15479dd28f2936062d37166a949419d332053af44cAlan Viverette */
16479dd28f2936062d37166a949419d332053af44cAlan Viverette
17479dd28f2936062d37166a949419d332053af44cAlan Viverettepackage android.support.v4.content;
18479dd28f2936062d37166a949419d332053af44cAlan Viverette
19479dd28f2936062d37166a949419d332053af44cAlan Viveretteimport 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