mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Android 12 compatibility
This commit is contained in:
parent
6836b72d5a
commit
eb21661761
2 changed files with 2 additions and 2 deletions
|
@ -4899,7 +4899,7 @@ class Core {
|
|||
Intent reply = new Intent(context, ServiceUI.class)
|
||||
.setAction("reply:" + message.id)
|
||||
.putExtra("group", group);
|
||||
PendingIntent piReply = PendingIntent.getService(
|
||||
PendingIntent piReply = PendingIntentCompat.getService(
|
||||
context, ServiceUI.PI_REPLY_DIRECT, reply, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
NotificationCompat.Action.Builder actionReply = new NotificationCompat.Action.Builder(
|
||||
R.drawable.twotone_reply_24,
|
||||
|
|
|
@ -126,7 +126,7 @@ public class WidgetUnified extends AppWidgetProvider {
|
|||
thread.putExtra("widget_type", type);
|
||||
thread.putExtra("filter_archive", !EntityFolder.ARCHIVE.equals(type));
|
||||
thread.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
PendingIntent piItem = PendingIntent.getActivity(
|
||||
PendingIntent piItem = PendingIntentCompat.getActivity(
|
||||
context, ActivityView.PI_WIDGET, thread, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
|
||||
|
||||
views.setPendingIntentTemplate(R.id.lv, piItem);
|
||||
|
|
Loading…
Reference in a new issue