No need to check download url when save

This commit is contained in:
PeratX 2017-06-30 11:00:07 +08:00
parent d36eee1859
commit c52d311d15

View File

@ -215,7 +215,7 @@ public class RuleConfigFragment extends ConfigFragment {
String ruleFilename = ((EditTextPreference) findPreference("ruleFilename")).getText(); String ruleFilename = ((EditTextPreference) findPreference("ruleFilename")).getText();
String ruleDownloadUrl = ((EditTextPreference) findPreference("ruleDownloadUrl")).getText(); String ruleDownloadUrl = ((EditTextPreference) findPreference("ruleDownloadUrl")).getText();
if (ruleName.equals("") | ruleType.equals("") | ruleFilename.equals("") | ruleDownloadUrl.equals("")) { if (ruleName.equals("") | ruleType.equals("") | ruleFilename.equals("")) {
Snackbar.make(getView(), R.string.notice_fill_in_all, Snackbar.LENGTH_SHORT) Snackbar.make(getView(), R.string.notice_fill_in_all, Snackbar.LENGTH_SHORT)
.setAction("Action", null).show(); .setAction("Action", null).show();
return false; return false;