diff options
| author | Dmitri Plotnikov <dplotnikov@google.com> | 2017-01-30 11:16:21 -0800 |
|---|---|---|
| committer | Dmitri Plotnikov <dplotnikov@google.com> | 2017-01-30 11:22:06 -0800 |
| commit | 2228136171a065c082eb7b85a511ddaf232c3be6 (patch) | |
| tree | 7024888069f02ad625a2b987b6d87150ef1d1ef1 /core/java/android | |
| parent | b7cab6a19096458a7fafa905eed52db83759b6c6 (diff) | |
Protecting TvExtender from being stripped by lightenPayload()
Test: Verified manually that TvExtenders actually
arrive in LeanbackLauncher
Change-Id: I42bfc340f7e92bc15243f66c6ae24a330d569262
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/Notification.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 82917d27d0d6..87870ed422d7 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1895,6 +1895,9 @@ public class Notification implements Parcelable final String[] keys = keyset.toArray(new String[N]); for (int i=0; i<N; i++) { final String key = keys[i]; + if (TvExtender.EXTRA_TV_EXTENDER.equals(key)) { + continue; + } final Object obj = extras.get(key); if (obj != null && ( obj instanceof Parcelable |
