Index: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/WhitelistedWebsitesPreferenceCategory.java |
=================================================================== |
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/WhitelistedWebsitesPreferenceCategory.java |
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/WhitelistedWebsitesPreferenceCategory.java |
@@ -89,25 +89,26 @@ public class WhitelistedWebsitesPreferen |
public void onClick(DialogInterface dialog, int which) |
{ |
removeWhitelistedWebsite(url); |
} |
}); |
this.addPreference(whitelistedWebsitePreference); |
} |
- final UrlInputOpenerPreference urlPreference = new UrlInputOpenerPreference(this.getContext()); |
+ final InputValidatorDialogPreference urlPreference = new InputValidatorDialogPreference( |
+ this.getContext(), InputValidatorDialogPreference.ValidationType.DOMAIN); |
urlPreference.setTitle(R.string.whitelisted_websites_add_button); |
urlPreference.setDialogTitle(R.string.whitelist_website_dialog_title); |
urlPreference.setDialogMessage(R.string.whitelist_website_dialog_message); |
urlPreference.getEditText().setHint(R.string.whitelist_website_dialog_hint); |
- urlPreference.setOnUrlReadyListener(new UrlInputOpenerPreference.OnUrlReadyListener() |
+ urlPreference.setOnInputReadyListener(new InputValidatorDialogPreference.OnInputReadyListener() |
{ |
@Override |
- public void onUrlReady(String url) |
+ public void onInputReady(String url) |
diegocarloslima
2017/09/22 17:43:42
I would suggest changing from `String url` to `Str
jens
2017/09/26 10:25:02
Acknowledged.
|
{ |
WhitelistedWebsitesPreferenceCategory.this.whitelistWebsite(url); |
} |
}); |
this.addPreference(urlPreference); |
} |
private void whitelistWebsite(String url) |