Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22281361 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Protecting TvExtender from being stripped by lightenPayload()

Test: Verified manually that TvExtenders actually
arrive in LeanbackLauncher
Change-Id: I42bfc340f7e92bc15243f66c6ae24a330d569262
parent b7cab6a1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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