summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-02-04 17:35:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-04 17:35:29 +0000
commit0f010049bb2acb27e293022b8b3112f9f296138a (patch)
treee86fb2ade9918589863da387dcab26ee1c1fc23b /src
parentc5a55e5d6b91faf7ece0030f9d1d0d172924c957 (diff)
parentae6302b51b1f03ddd4865539b071ba2a661b977f (diff)
Merge "Convert unnecessary RelativeLayout to FrameLayout"
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/list/SpeedDialFragment.java5
1 files changed, 3 insertions, 2 deletions
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);