19926272f32868c858b24b45e048210cf3515741eMichael Jurka/* 29926272f32868c858b24b45e048210cf3515741eMichael Jurka * Copyright (C) 2013 The Android Open Source Project 39926272f32868c858b24b45e048210cf3515741eMichael Jurka * 49926272f32868c858b24b45e048210cf3515741eMichael Jurka * Licensed under the Apache License, Version 2.0 (the "License"); 59926272f32868c858b24b45e048210cf3515741eMichael Jurka * you may not use this file except in compliance with the License. 69926272f32868c858b24b45e048210cf3515741eMichael Jurka * You may obtain a copy of the License at 79926272f32868c858b24b45e048210cf3515741eMichael Jurka * 89926272f32868c858b24b45e048210cf3515741eMichael Jurka * http://www.apache.org/licenses/LICENSE-2.0 99926272f32868c858b24b45e048210cf3515741eMichael Jurka * 109926272f32868c858b24b45e048210cf3515741eMichael Jurka * Unless required by applicable law or agreed to in writing, software 119926272f32868c858b24b45e048210cf3515741eMichael Jurka * distributed under the License is distributed on an "AS IS" BASIS, 129926272f32868c858b24b45e048210cf3515741eMichael Jurka * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 139926272f32868c858b24b45e048210cf3515741eMichael Jurka * See the License for the specific language governing permissions and 149926272f32868c858b24b45e048210cf3515741eMichael Jurka * limitations under the License. 159926272f32868c858b24b45e048210cf3515741eMichael Jurka */ 169926272f32868c858b24b45e048210cf3515741eMichael Jurka 179926272f32868c858b24b45e048210cf3515741eMichael Jurkapackage com.android.systemui.recent; 189926272f32868c858b24b45e048210cf3515741eMichael Jurka 199926272f32868c858b24b45e048210cf3515741eMichael Jurkaimport android.graphics.drawable.ColorDrawable; 209926272f32868c858b24b45e048210cf3515741eMichael Jurka 219926272f32868c858b24b45e048210cf3515741eMichael Jurkapublic class ColorDrawableWithDimensions extends ColorDrawable { 229926272f32868c858b24b45e048210cf3515741eMichael Jurka private int mWidth; 239926272f32868c858b24b45e048210cf3515741eMichael Jurka private int mHeight; 249926272f32868c858b24b45e048210cf3515741eMichael Jurka 259926272f32868c858b24b45e048210cf3515741eMichael Jurka public ColorDrawableWithDimensions(int color, int width, int height) { 269926272f32868c858b24b45e048210cf3515741eMichael Jurka super(color); 279926272f32868c858b24b45e048210cf3515741eMichael Jurka mWidth = width; 289926272f32868c858b24b45e048210cf3515741eMichael Jurka mHeight = height; 299926272f32868c858b24b45e048210cf3515741eMichael Jurka } 309926272f32868c858b24b45e048210cf3515741eMichael Jurka 319926272f32868c858b24b45e048210cf3515741eMichael Jurka @Override 329926272f32868c858b24b45e048210cf3515741eMichael Jurka public int getIntrinsicWidth() { 339926272f32868c858b24b45e048210cf3515741eMichael Jurka return mWidth; 349926272f32868c858b24b45e048210cf3515741eMichael Jurka } 359926272f32868c858b24b45e048210cf3515741eMichael Jurka 369926272f32868c858b24b45e048210cf3515741eMichael Jurka @Override 379926272f32868c858b24b45e048210cf3515741eMichael Jurka public int getIntrinsicHeight() { 389926272f32868c858b24b45e048210cf3515741eMichael Jurka return mHeight; 399926272f32868c858b24b45e048210cf3515741eMichael Jurka } 409926272f32868c858b24b45e048210cf3515741eMichael Jurka} 41