Allow checking headers conditions if headers were downloaded

This commit is contained in:
M66B
2021-05-20 21:52:37 +02:00
parent 03eacaada5
commit 82827d0faa
2 changed files with 11 additions and 9 deletions

View File

@@ -1054,13 +1054,6 @@ public class FragmentRule extends FragmentBase {
JSONObject jcondition = getCondition();
JSONObject jaction = getAction();
JSONObject jheader = jcondition.optJSONObject("header");
if (jheader != null) {
Snackbar.make(view, R.string.title_rule_no_headers, Snackbar.LENGTH_LONG)
.setGestureInsetBottomIgnored(true).show();
return;
}
Bundle args = new Bundle();
args.putLong("folder", folder);
args.putString("condition", jcondition.toString());