mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Small improvement
This commit is contained in:
parent
fb976725ef
commit
6e03cfcc85
1 changed files with 3 additions and 3 deletions
|
@ -1987,7 +1987,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||
args.putParcelable("actions", getConversationActions(message, document));
|
||||
args.putParcelable("actions", getConversationActions(message, document, context));
|
||||
|
||||
return document.html();
|
||||
} else {
|
||||
|
@ -1995,7 +1995,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
document = HtmlHelper.sanitizeView(context, document, show_images);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||
args.putParcelable("actions", getConversationActions(message, document));
|
||||
args.putParcelable("actions", getConversationActions(message, document, context));
|
||||
|
||||
// Collapse quotes
|
||||
if (!show_quotes) {
|
||||
|
@ -2209,7 +2209,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.Q)
|
||||
private ConversationActions getConversationActions(TupleMessageEx message, Document document) {
|
||||
private ConversationActions getConversationActions(TupleMessageEx message, Document document, Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean conversation_actions = prefs.getBoolean("conversation_actions", true);
|
||||
boolean conversation_actions_replies = prefs.getBoolean("conversation_actions_replies", true);
|
||||
|
|
Loading…
Reference in a new issue