From ae6302b51b1f03ddd4865539b071ba2a661b977f Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 3 Feb 2015 16:33:46 -0800 Subject: Convert unnecessary RelativeLayout to FrameLayout Change-Id: I8b68eadf13f581d10b92ae58eb78d04f31a6ff60 --- src/com/android/dialer/list/SpeedDialFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/list/SpeedDialFragment.java b/src/com/android/dialer/list/SpeedDialFragment.java index 6de0759fa..e72b25059 100644 --- a/src/com/android/dialer/list/SpeedDialFragment.java +++ b/src/com/android/dialer/list/SpeedDialFragment.java @@ -39,10 +39,11 @@ import android.view.animation.LayoutAnimationController; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; +import android.widget.FrameLayout; +import android.widget.FrameLayout.LayoutParams; import android.widget.ImageView; import android.widget.ListView; import android.widget.RelativeLayout; -import android.widget.RelativeLayout.LayoutParams; import com.android.contacts.common.ContactPhotoManager; import com.android.contacts.common.ContactTileLoaderFactory; @@ -244,7 +245,7 @@ public class SpeedDialFragment extends Fragment implements OnItemClickListener, final int listViewVisibility = visible ? View.GONE : View.VISIBLE; if (previousVisibility != emptyViewVisibility) { - final RelativeLayout.LayoutParams params = (LayoutParams) mContactTileFrame + final FrameLayout.LayoutParams params = (LayoutParams) mContactTileFrame .getLayoutParams(); params.height = visible ? LayoutParams.WRAP_CONTENT : LayoutParams.MATCH_PARENT; mContactTileFrame.setLayoutParams(params); -- cgit v1.2.3