diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-07 17:36:47 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-24 16:30:38 -0700 |
commit | 64f9593c85ac00dbcdbc99d2d18c457c0bd0f68e (patch) | |
tree | 0a8a3a73400f407d15475314b54b6aa3c98fdeb6 /src/com/android/dialer/list/PhoneFavoriteRegularRowView.java | |
parent | 6720273a04f940de2b383128b7596f33d781f231 (diff) |
Remove layout and logic for unused non-tiled favorites
Change-Id: I26caea4e47da8ae8420ef35e8006ee3f968d0630
Diffstat (limited to 'src/com/android/dialer/list/PhoneFavoriteRegularRowView.java')
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteRegularRowView.java | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteRegularRowView.java b/src/com/android/dialer/list/PhoneFavoriteRegularRowView.java deleted file mode 100644 index 91b09d7d6..000000000 --- a/src/com/android/dialer/list/PhoneFavoriteRegularRowView.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2011 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.android.dialer.list; - -import android.content.Context; -import android.content.res.Resources; -import android.util.AttributeSet; -import android.view.View; - -import com.android.contacts.common.util.ViewUtil; -import com.android.dialer.R; - -public class PhoneFavoriteRegularRowView extends PhoneFavoriteTileView { - private static final String TAG = PhoneFavoriteRegularRowView.class.getSimpleName(); - private static final boolean DEBUG = false; - - public PhoneFavoriteRegularRowView(Context context, AttributeSet attrs) { - super(context, attrs); - } - - @Override - protected void onFinishInflate() { - super.onFinishInflate(); - - final View favoriteContactCard = findViewById(R.id.contact_favorite_card); - - final int rowPaddingStart; - final int rowPaddingEnd; - final int rowPaddingTop; - final int rowPaddingBottom; - - final Resources resources = getResources(); - rowPaddingStart = resources.getDimensionPixelSize( - R.dimen.favorites_row_start_padding); - rowPaddingEnd = resources.getDimensionPixelSize( - R.dimen.favorites_row_end_padding); - rowPaddingTop = resources.getDimensionPixelSize( - R.dimen.favorites_row_top_padding); - rowPaddingBottom = resources.getDimensionPixelSize( - R.dimen.favorites_row_bottom_padding); - - favoriteContactCard.setBackgroundResource(R.drawable.contact_list_item_background); - - favoriteContactCard.setPaddingRelative(rowPaddingStart, rowPaddingTop, rowPaddingEnd, - rowPaddingBottom); - - final View quickContactBadge = findViewById(R.id.contact_tile_quick); - quickContactBadge.setOnLongClickListener(new OnLongClickListener() { - @Override - public boolean onLongClick(View v) { - return PhoneFavoriteRegularRowView.this.performLongClick(); - } - }); - } - - @Override - protected int getApproximateImageSize() { - return ViewUtil.getConstantPreLayoutWidth(getQuickContact()); - } -} |