Index: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/UrlInputOpenerPreference.java |
=================================================================== |
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/UrlInputOpenerPreference.java |
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/UrlInputOpenerPreference.java |
@@ -119,28 +119,20 @@ public class UrlInputOpenerPreference ex |
} |
return true; |
} |
return false; |
} |
public void setIcon(@DrawableRes int iconResId) |
{ |
- final Drawable drawable = ContextCompat.getDrawable(getContext(), iconResId); |
+ final Drawable drawable = this.getContext().getDrawable(iconResId); |
setIcon(drawable); |
} |
- public void setIcon(Drawable icon) |
- { |
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) |
- { |
- super.setIcon(icon); |
- } |
- } |
- |
public void setOnUrlReadyListener(OnUrlReadyListener listener) |
{ |
this.onUrlReadyListener = listener; |
} |
private boolean isValidUrl() |
{ |
return Patterns.WEB_URL.matcher(getUrl()).matches(); |