Protecting TvExtender from being stripped by lightenPayload()

Test: Verified manually that TvExtenders actually
arrive in LeanbackLauncher
Change-Id: I42bfc340f7e92bc15243f66c6ae24a330d569262
This commit is contained in:
Dmitri Plotnikov
2017-01-30 11:16:21 -08:00
parent b7cab6a190
commit 2228136171

View File

@@ -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