Merge "Protecting TvExtender from being stripped by lightenPayload()"

This commit is contained in:
Dmitri Plotnikov
2017-01-31 00:17:19 +00:00
committed by Android (Google) Code Review

View File

@@ -1913,6 +1913,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