mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Added swipe to summarize
This commit is contained in:
@@ -32,6 +32,7 @@ import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
import org.jsoup.nodes.Document;
|
||||
@@ -165,4 +166,15 @@ public class FragmentDialogSummarize extends FragmentDialogBase {
|
||||
|
||||
return builder.create();
|
||||
}
|
||||
|
||||
public static void summarize(EntityMessage message, FragmentManager fm) {
|
||||
Bundle args = new Bundle();
|
||||
args.putLong("id", message.id);
|
||||
args.putString("from", MessageHelper.formatAddresses(message.from));
|
||||
args.putString("subject", message.subject);
|
||||
|
||||
FragmentDialogSummarize fragment = new FragmentDialogSummarize();
|
||||
fragment.setArguments(args);
|
||||
fragment.show(fm, "message:summary");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user