From d8d9408ca894501952c7a4dca7a74f646fe68be7 Mon Sep 17 00:00:00 2001 From: "skanuj@chromium.org" Date: Tue, 17 Dec 2013 00:07:15 +0000 Subject: 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 --- .../java/src/org/chromium/base/ApiCompatibilityUtils.java | 12 ++++++------ 1 file 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(); } } -- cgit v1.1