No need to check download url when save
This commit is contained in:
parent
d36eee1859
commit
c52d311d15
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user