Index: ui/android/java/src/org/chromium/ui/ColorPickerAdvancedComponent.java |
diff --git a/ui/android/java/src/org/chromium/ui/ColorPickerAdvancedComponent.java b/ui/android/java/src/org/chromium/ui/ColorPickerAdvancedComponent.java |
index c868f328a3c05b1289004827355dd719ac991b8b..ed49e227b1703b381383663c6d1a4e6183e78001 100644 |
--- a/ui/android/java/src/org/chromium/ui/ColorPickerAdvancedComponent.java |
+++ b/ui/android/java/src/org/chromium/ui/ColorPickerAdvancedComponent.java |
@@ -4,6 +4,7 @@ |
package org.chromium.ui; |
+import android.annotation.TargetApi; |
import android.content.Context; |
import android.graphics.drawable.GradientDrawable; |
import android.graphics.drawable.GradientDrawable.Orientation; |
@@ -82,6 +83,7 @@ public class ColorPickerAdvancedComponent { |
* |
* @param newColors The set of colors representing the interpolation points for the gradient. |
*/ |
+ @TargetApi(Build.VERSION_CODES.JELLY_BEAN) |
public void setGradientColors(int[] newColors) { |
mGradientColors = newColors.clone(); |
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { |