mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +00:00
Skip copying identity and folder of rules copied to another account
This commit is contained in:
parent
9c29824738
commit
2185596c3d
1 changed files with 12 additions and 8 deletions
|
@ -1255,8 +1255,10 @@ public class FragmentRule extends FragmentBase {
|
|||
|
||||
case EntityRule.TYPE_MOVE:
|
||||
case EntityRule.TYPE_COPY:
|
||||
if (copy < 0 || rule.account == account) {
|
||||
long target = jaction.optLong("target", -1);
|
||||
showFolder(target);
|
||||
}
|
||||
if (type == EntityRule.TYPE_MOVE) {
|
||||
etMoveCreate.setText(jaction.optString("create"));
|
||||
cbMoveSeen.setChecked(jaction.optBoolean("seen"));
|
||||
|
@ -1265,12 +1267,14 @@ public class FragmentRule extends FragmentBase {
|
|||
break;
|
||||
|
||||
case EntityRule.TYPE_ANSWER:
|
||||
if (copy < 0 || rule.account == account) {
|
||||
long identity = jaction.optLong("identity", -1);
|
||||
for (int pos = 0; pos < adapterIdentity.getCount(); pos++)
|
||||
if (adapterIdentity.getItem(pos).id.equals(identity)) {
|
||||
spIdent.setSelection(pos);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
long answer = jaction.optLong("answer", -1);
|
||||
for (int pos = 1; pos < adapterAnswer.getCount(); pos++)
|
||||
|
|
Loading…
Reference in a new issue