mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Small behavior improvement
This commit is contained in:
parent
8e8f30bc32
commit
1e2170d594
1 changed files with 8 additions and 2 deletions
|
@ -161,8 +161,7 @@ public class FragmentRule extends FragmentBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onActionSelected(int type) {
|
private void onActionSelected(int type) {
|
||||||
grpMove.setVisibility(type == EntityRule.TYPE_MOVE ? View.VISIBLE : View.GONE);
|
showActionParameters(type);
|
||||||
grpAnswer.setVisibility(type == EntityRule.TYPE_ANSWER ? View.VISIBLE : View.GONE);
|
|
||||||
|
|
||||||
new Handler().post(new Runnable() {
|
new Handler().post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -306,6 +305,8 @@ public class FragmentRule extends FragmentBase {
|
||||||
spAction.setSelection(pos);
|
spAction.setSelection(pos);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
showActionParameters(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
grpReady.setVisibility(View.VISIBLE);
|
grpReady.setVisibility(View.VISIBLE);
|
||||||
|
@ -514,6 +515,11 @@ public class FragmentRule extends FragmentBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void showActionParameters(int type) {
|
||||||
|
grpMove.setVisibility(type == EntityRule.TYPE_MOVE ? View.VISIBLE : View.GONE);
|
||||||
|
grpAnswer.setVisibility(type == EntityRule.TYPE_ANSWER ? View.VISIBLE : View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
private class RefData {
|
private class RefData {
|
||||||
List<EntityFolder> folders;
|
List<EntityFolder> folders;
|
||||||
List<EntityIdentity> identities;
|
List<EntityIdentity> identities;
|
||||||
|
|
Loading…
Reference in a new issue