Loading core/java/android/app/NotificationHistory.java +8 −2 Original line number Original line Diff line number Diff line Loading @@ -497,7 +497,11 @@ public final class NotificationHistory implements Parcelable { p.writeLong(notification.getPostedTimeMs()); p.writeLong(notification.getPostedTimeMs()); p.writeString(notification.getTitle()); p.writeString(notification.getTitle()); p.writeString(notification.getText()); p.writeString(notification.getText()); notification.getIcon().writeToParcel(p, flags); p.writeBoolean(false); // The current design does not display icons, so don't bother adding them to the parcel //if (notification.getIcon() != null) { // notification.getIcon().writeToParcel(p, flags); //} } } /** /** Loading Loading @@ -539,7 +543,9 @@ public final class NotificationHistory implements Parcelable { notificationOut.setPostedTimeMs(p.readLong()); notificationOut.setPostedTimeMs(p.readLong()); notificationOut.setTitle(p.readString()); notificationOut.setTitle(p.readString()); notificationOut.setText(p.readString()); notificationOut.setText(p.readString()); if (p.readBoolean()) { notificationOut.setIcon(Icon.CREATOR.createFromParcel(p)); notificationOut.setIcon(Icon.CREATOR.createFromParcel(p)); } return notificationOut.build(); return notificationOut.build(); } } Loading Loading
core/java/android/app/NotificationHistory.java +8 −2 Original line number Original line Diff line number Diff line Loading @@ -497,7 +497,11 @@ public final class NotificationHistory implements Parcelable { p.writeLong(notification.getPostedTimeMs()); p.writeLong(notification.getPostedTimeMs()); p.writeString(notification.getTitle()); p.writeString(notification.getTitle()); p.writeString(notification.getText()); p.writeString(notification.getText()); notification.getIcon().writeToParcel(p, flags); p.writeBoolean(false); // The current design does not display icons, so don't bother adding them to the parcel //if (notification.getIcon() != null) { // notification.getIcon().writeToParcel(p, flags); //} } } /** /** Loading Loading @@ -539,7 +543,9 @@ public final class NotificationHistory implements Parcelable { notificationOut.setPostedTimeMs(p.readLong()); notificationOut.setPostedTimeMs(p.readLong()); notificationOut.setTitle(p.readString()); notificationOut.setTitle(p.readString()); notificationOut.setText(p.readString()); notificationOut.setText(p.readString()); if (p.readBoolean()) { notificationOut.setIcon(Icon.CREATOR.createFromParcel(p)); notificationOut.setIcon(Icon.CREATOR.createFromParcel(p)); } return notificationOut.build(); return notificationOut.build(); } } Loading