Loading core/java/android/app/Notification.java +12 −0 Original line number Original line Diff line number Diff line Loading @@ -1986,6 +1986,10 @@ public class Notification implements Parcelable new Throwable()); new Throwable()); } } if (context.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) { extras.putBoolean(EXTRA_SHOW_WHEN, true); } // ensure that any information already set directly is preserved // ensure that any information already set directly is preserved final Notification.Builder builder = new Notification.Builder(context, this); final Notification.Builder builder = new Notification.Builder(context, this); Loading Loading @@ -2269,6 +2273,14 @@ public class Notification implements Parcelable Collections.addAll(mPersonList, mN.extras.getStringArray(EXTRA_PEOPLE)); Collections.addAll(mPersonList, mN.extras.getStringArray(EXTRA_PEOPLE)); } } if (mN.getSmallIcon() == null && mN.icon != 0) { setSmallIcon(mN.icon); } if (mN.getLargeIcon() == null && mN.largeIcon != null) { setLargeIcon(mN.largeIcon); } String templateClass = mN.extras.getString(EXTRA_TEMPLATE); String templateClass = mN.extras.getString(EXTRA_TEMPLATE); if (!TextUtils.isEmpty(templateClass)) { if (!TextUtils.isEmpty(templateClass)) { final Class<? extends Style> styleClass final Class<? extends Style> styleClass Loading Loading
core/java/android/app/Notification.java +12 −0 Original line number Original line Diff line number Diff line Loading @@ -1986,6 +1986,10 @@ public class Notification implements Parcelable new Throwable()); new Throwable()); } } if (context.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) { extras.putBoolean(EXTRA_SHOW_WHEN, true); } // ensure that any information already set directly is preserved // ensure that any information already set directly is preserved final Notification.Builder builder = new Notification.Builder(context, this); final Notification.Builder builder = new Notification.Builder(context, this); Loading Loading @@ -2269,6 +2273,14 @@ public class Notification implements Parcelable Collections.addAll(mPersonList, mN.extras.getStringArray(EXTRA_PEOPLE)); Collections.addAll(mPersonList, mN.extras.getStringArray(EXTRA_PEOPLE)); } } if (mN.getSmallIcon() == null && mN.icon != 0) { setSmallIcon(mN.icon); } if (mN.getLargeIcon() == null && mN.largeIcon != null) { setLargeIcon(mN.largeIcon); } String templateClass = mN.extras.getString(EXTRA_TEMPLATE); String templateClass = mN.extras.getString(EXTRA_TEMPLATE); if (!TextUtils.isEmpty(templateClass)) { if (!TextUtils.isEmpty(templateClass)) { final Class<? extends Style> styleClass final Class<? extends Style> styleClass Loading