Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/UrlInputOpenerPreference.java

Issue 29449609: Issue 5242 - Adjust setIcon() methods in UrlInputOpenerPreference (Closed)
Patch Set: Created May 26, 2017, 9:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: 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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld