diff --git a/app/src/main/java/eu/faircode/email/FragmentRule.java b/app/src/main/java/eu/faircode/email/FragmentRule.java index 854db364dd..89fe2ad4b7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentRule.java +++ b/app/src/main/java/eu/faircode/email/FragmentRule.java @@ -204,6 +204,7 @@ public class FragmentRule extends FragmentBase { private Group grpLocalOnly; private Group grpNotes; private Group grpUrl; + private Group grpSummarize; private ArrayAdapter adapterGroup; private ArrayAdapter adapterDay; @@ -408,6 +409,7 @@ public class FragmentRule extends FragmentBase { grpLocalOnly = view.findViewById(R.id.grpLocalOnly); grpNotes = view.findViewById(R.id.grpNotes); grpUrl = view.findViewById(R.id.grpUrl); + grpSummarize = view.findViewById(R.id.grpSummarize); adapterGroup = new ArrayAdapter<>(getContext(), R.layout.spinner_item1_dropdown, android.R.id.text1); etGroup.setThreshold(1); @@ -880,6 +882,7 @@ public class FragmentRule extends FragmentBase { grpLocalOnly.setVisibility(View.GONE); grpNotes.setVisibility(View.GONE); grpUrl.setVisibility(View.GONE); + grpSummarize.setVisibility(View.GONE); pbWait.setVisibility(View.VISIBLE); @@ -1468,6 +1471,7 @@ public class FragmentRule extends FragmentBase { grpLocalOnly.setVisibility(type == EntityRule.TYPE_LOCAL_ONLY ? View.VISIBLE : View.GONE); grpNotes.setVisibility(type == EntityRule.TYPE_NOTES ? View.VISIBLE : View.GONE); grpUrl.setVisibility(type == EntityRule.TYPE_URL ? View.VISIBLE : View.GONE); + grpSummarize.setVisibility(type == EntityRule.TYPE_SUMMARIZE ? View.VISIBLE : View.GONE); } private void onActionDelete() { diff --git a/app/src/main/res/layout/fragment_rule.xml b/app/src/main/res/layout/fragment_rule.xml index c06c7a8aa5..0f77ae838a 100644 --- a/app/src/main/res/layout/fragment_rule.xml +++ b/app/src/main/res/layout/fragment_rule.xml @@ -1432,6 +1432,16 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/etUrl" /> + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5515a53117..c315bb1b9a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2036,6 +2036,7 @@ Play sound Silent notification Summarize + Summarize the message with configured AI integration Edit rule Rule applies to