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
This commit is contained in:
parent
c594691b93
commit
e2d94adfdb
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue