mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Added remark
This commit is contained in:
parent
3dda425671
commit
25e1e7ad4a
3 changed files with 21 additions and 0 deletions
|
@ -204,6 +204,7 @@ public class FragmentRule extends FragmentBase {
|
|||
private Group grpLocalOnly;
|
||||
private Group grpNotes;
|
||||
private Group grpUrl;
|
||||
private Group grpSummarize;
|
||||
|
||||
private ArrayAdapter<String> adapterGroup;
|
||||
private ArrayAdapter<String> 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() {
|
||||
|
|
|
@ -1432,6 +1432,16 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etUrl" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSummarizeRemark"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="@string/title_rule_summarize_remark"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvUrlHint" />
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/grpReady"
|
||||
android:layout_width="0dp"
|
||||
|
@ -1544,6 +1554,12 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:constraint_referenced_ids="tvUrl,spUrlMethod,etUrl,tvUrlHint" />
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/grpSummarize"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:constraint_referenced_ids="tvSummarizeRemark" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
|
||||
|
|
|
@ -2036,6 +2036,7 @@
|
|||
<string name="title_rule_sound">Play sound</string>
|
||||
<string name="title_rule_silent">Silent notification</string>
|
||||
<string name="title_rule_summarize">Summarize</string>
|
||||
<string name="title_rule_summarize_remark">Summarize the message with configured AI integration</string>
|
||||
|
||||
<string name="title_rule_caption">Edit rule</string>
|
||||
<string name="title_rule_title">Rule applies to</string>
|
||||
|
|
Loading…
Reference in a new issue