diff options
author | skanuj@chromium.org <skanuj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-17 00:07:15 +0000 |
---|---|---|
committer | skanuj@chromium.org <skanuj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-17 00:07:15 +0000 |
commit | d8d9408ca894501952c7a4dca7a74f646fe68be7 (patch) | |
tree | 3e2c38d26e48e3f655e8ef352ea169a7360b696d /base | |
parent | 961425e12397cce0128cc2d42d1dbb7a27b7ca24 (diff) | |
download | chromium_src-d8d9408ca894501952c7a4dca7a74f646fe68be7.zip chromium_src-d8d9408ca894501952c7a4dca7a74f646fe68be7.tar.gz chromium_src-d8d9408ca894501952c7a4dca7a74f646fe68be7.tar.bz2 |
Fix getPaddingStart/getPaddingEnd in ApiCompatibilityUtils.java
BUG=327833
R=yfriedman@chromium.org
NOTRY=true
Review URL: https://codereview.chromium.org/98353006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java index 26ec7b9..44baee4 100644 --- a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java +++ b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java @@ -129,24 +129,24 @@ public class ApiCompatibilityUtils { /** * @see android.view.View#getPaddingStart() */ - public static void getPaddingStart(View view) { + public static int getPaddingStart(View view) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { - view.getPaddingStart(); + return view.getPaddingStart(); } else { // Before JB MR1, all layouts are left-to-right, so start == left. - view.getPaddingLeft(); + return view.getPaddingLeft(); } } /** * @see android.view.View#getPaddingEnd() */ - public static void getPaddingEnd(View view) { + public static int getPaddingEnd(View view) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { - view.getPaddingEnd(); + return view.getPaddingEnd(); } else { // Before JB MR1, all layouts are left-to-right, so end == right. - view.getPaddingRight(); + return view.getPaddingRight(); } } |