diff options
| author | Selim Cinek <cinek@google.com> | 2018-01-24 16:21:07 -0800 |
|---|---|---|
| committer | Selim Cinek <cinek@google.com> | 2018-01-25 00:25:33 +0000 |
| commit | de4de0e204a028f8f8608d7fd649fe1a60784c4e (patch) | |
| tree | 72c715d227cc29ee1f591a23ea94199f9c529962 /core/java/android | |
| parent | 7fa385abd882b8381e928d107bc81d984a8bbee4 (diff) | |
Added the reply draft as an extra to the content intent
Change-Id: I406833a5875221731baf0834f2e47e283b84aae9
Fixes: 36858677
Test: Add notification, draft reply and click on it. Ensure that extra is sent
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/Notification.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index d6fddfca986e..0b5b363ddecd 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -200,6 +200,16 @@ public class Notification implements Parcelable */ private static final int MAX_REPLY_HISTORY = 5; + + /** + * If the notification contained an unsent draft for a RemoteInput when the user clicked on it, + * we're adding the draft as a String extra to the {@link #contentIntent} using this key. + * + * <p>Apps may use this extra to prepopulate text fields in the app, where the user usually + * sends messages.</p> + */ + public static final String EXTRA_REMOTE_INPUT_DRAFT = "android.remoteInputDraft"; + /** * A timestamp related to this notification, in milliseconds since the epoch. * |
