diff options
author | Yorke Lee <yorkelee@google.com> | 2013-10-21 14:44:30 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-10-21 14:45:31 -0700 |
commit | 519596dc3dc4f0224a20b9198ea5e85c248397b0 (patch) | |
tree | 705e4f3dc8836bb3b85e246576209a807081bbcf /src | |
parent | 10219d98ea9095404cde98d34512c2d322de39e6 (diff) |
Use setMargins instead of setMarginsRelative
setMarginsRelative is a private API and is not needed since
margins are equal on all sides
Change-Id: I2aeeb336e2c59132224a5b1a69560ca05f76bec2
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java | 3 |
1 files changed, 1 insertions, 2 deletions
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); |