From 519596dc3dc4f0224a20b9198ea5e85c248397b0 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 21 Oct 2013 14:44:30 -0700 Subject: Use setMargins instead of setMarginsRelative setMarginsRelative is a private API and is not needed since margins are equal on all sides Change-Id: I2aeeb336e2c59132224a5b1a69560ca05f76bec2 --- src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java b/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java index daba39e6d..e7190c52f 100644 --- a/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java +++ b/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java @@ -323,8 +323,7 @@ public class PhoneFavoriteMergedAdapter extends BaseAdapter { final FrameLayout.LayoutParams params = new FrameLayout.LayoutParams( FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT); - params.setMarginsRelative(mCallLogPadding, mCallLogPadding, mCallLogPadding, - mCallLogPadding); + params.setMargins(mCallLogPadding, mCallLogPadding, mCallLogPadding, mCallLogPadding); view.setLayoutParams(params); super.addView(view); -- cgit v1.2.3