From e2d94adfdbe9fd32260d19bc760c73036070ff25 Mon Sep 17 00:00:00 2001 From: Mattias Eriksson Date: Tue, 31 Jan 2017 17:28:44 +0100 Subject: [PATCH] Add Intent.FLAG_INCLUDE_STOPPED_PACKAGES Add Intent.FLAG_INCLUDE_STOPPED_PACKAGES to Android Auto intents to match https://developer.android.com/training/auto/messaging/index.html // FREEBIE --- .../thoughtcrime/securesms/notifications/NotificationState.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/notifications/NotificationState.java b/src/org/thoughtcrime/securesms/notifications/NotificationState.java index f80a51025..c8b43deb7 100644 --- a/src/org/thoughtcrime/securesms/notifications/NotificationState.java +++ b/src/org/thoughtcrime/securesms/notifications/NotificationState.java @@ -131,6 +131,7 @@ public class NotificationState { if (threads.size() != 1) throw new AssertionError("We only support replies to single thread notifications!"); Intent intent = new Intent(AndroidAutoReplyReceiver.REPLY_ACTION); + intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); intent.setClass(context, AndroidAutoReplyReceiver.class); intent.setData((Uri.parse("custom://"+System.currentTimeMillis()))); intent.putExtra(AndroidAutoReplyReceiver.RECIPIENT_IDS_EXTRA, recipients.getIds()); @@ -149,6 +150,7 @@ public class NotificationState { } Intent intent = new Intent(AndroidAutoHeardReceiver.HEARD_ACTION); + intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); intent.setClass(context, AndroidAutoHeardReceiver.class); intent.setData((Uri.parse("custom://"+System.currentTimeMillis()))); intent.putExtra(AndroidAutoHeardReceiver.THREAD_IDS_EXTRA, threadArray);