1be678137d44778590a6220ae0ef13649e83363a9Chris Banes/*
2be678137d44778590a6220ae0ef13649e83363a9Chris Banes * Copyright (C) 2016 The Android Open Source Project
3be678137d44778590a6220ae0ef13649e83363a9Chris Banes *
4be678137d44778590a6220ae0ef13649e83363a9Chris Banes * Licensed under the Apache License, Version 2.0 (the "License");
5be678137d44778590a6220ae0ef13649e83363a9Chris Banes * you may not use this file except in compliance with the License.
6be678137d44778590a6220ae0ef13649e83363a9Chris Banes * You may obtain a copy of the License at
7be678137d44778590a6220ae0ef13649e83363a9Chris Banes *
8be678137d44778590a6220ae0ef13649e83363a9Chris Banes *      http://www.apache.org/licenses/LICENSE-2.0
9be678137d44778590a6220ae0ef13649e83363a9Chris Banes *
10be678137d44778590a6220ae0ef13649e83363a9Chris Banes * Unless required by applicable law or agreed to in writing, software
11be678137d44778590a6220ae0ef13649e83363a9Chris Banes * distributed under the License is distributed on an "AS IS" BASIS,
12be678137d44778590a6220ae0ef13649e83363a9Chris Banes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13be678137d44778590a6220ae0ef13649e83363a9Chris Banes * See the License for the specific language governing permissions and
14be678137d44778590a6220ae0ef13649e83363a9Chris Banes * limitations under the License.
15be678137d44778590a6220ae0ef13649e83363a9Chris Banes */
16be678137d44778590a6220ae0ef13649e83363a9Chris Banes
17be678137d44778590a6220ae0ef13649e83363a9Chris Banespackage android.support.v4.graphics;
18be678137d44778590a6220ae0ef13649e83363a9Chris Banes
19be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.content.res.ColorStateList;
20be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.graphics.PorterDuff;
21be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.graphics.drawable.BitmapDrawable;
22be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.support.v4.graphics.drawable.TintAwareDrawable;
23be678137d44778590a6220ae0ef13649e83363a9Chris Banes
24be678137d44778590a6220ae0ef13649e83363a9Chris Banespublic class TestTintAwareDrawable extends BitmapDrawable implements TintAwareDrawable {
25be678137d44778590a6220ae0ef13649e83363a9Chris Banes
26be678137d44778590a6220ae0ef13649e83363a9Chris Banes    public TestTintAwareDrawable() {
27be678137d44778590a6220ae0ef13649e83363a9Chris Banes        super();
28be678137d44778590a6220ae0ef13649e83363a9Chris Banes    }
29be678137d44778590a6220ae0ef13649e83363a9Chris Banes
30be678137d44778590a6220ae0ef13649e83363a9Chris Banes    @Override
31be678137d44778590a6220ae0ef13649e83363a9Chris Banes    public void setTint(int tintColor) {
32be678137d44778590a6220ae0ef13649e83363a9Chris Banes        // no-op so that the method isn't abstract on API 20 and below
33be678137d44778590a6220ae0ef13649e83363a9Chris Banes    }
34be678137d44778590a6220ae0ef13649e83363a9Chris Banes
35be678137d44778590a6220ae0ef13649e83363a9Chris Banes    @Override
36be678137d44778590a6220ae0ef13649e83363a9Chris Banes    public void setTintList(ColorStateList tint) {
37be678137d44778590a6220ae0ef13649e83363a9Chris Banes        // no-op so that the method isn't abstract on API 20 and below
38be678137d44778590a6220ae0ef13649e83363a9Chris Banes    }
39be678137d44778590a6220ae0ef13649e83363a9Chris Banes
40be678137d44778590a6220ae0ef13649e83363a9Chris Banes    @Override
41be678137d44778590a6220ae0ef13649e83363a9Chris Banes    public void setTintMode(PorterDuff.Mode tintMode) {
42be678137d44778590a6220ae0ef13649e83363a9Chris Banes        // no-op so that the method isn't abstract on API 20 and below
43be678137d44778590a6220ae0ef13649e83363a9Chris Banes    }
44be678137d44778590a6220ae0ef13649e83363a9Chris Banes}
45