Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java

Issue 98353006: Fix getPaddingStart/getPaddingEnd in ApiCompatibilityUtils.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
index 26ec7b979d29319b63a360a8c93c387ec2432de0..44baee4feb4d5a2719de487f568049d3964a47a5 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();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698