Loading src/android/LocalNotificationReceiver.java +3 −3 Changes for src/android/LocalNotificationReceiver.java: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ public class LocalNotificationReceiver extends BroadcastReceiver { @SuppressWarnings("deprecation") @SuppressLint("NewApi") private void showNotification (Builder notification) { NotificationManager notificationMgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); NotificationManager mgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); int id = 0; try { Loading @@ -146,10 +146,10 @@ public class LocalNotificationReceiver extends BroadcastReceiver { if (Build.VERSION.SDK_INT<16) { // build notification for HoneyComb to ICS notificationMgr.notify(id, notification.getNotification()); mgr.notify(id, notification.getNotification()); } else if (Build.VERSION.SDK_INT>15) { // Notification for Jellybean and above notificationMgr.notify(id, notification.build()); mgr.notify(id, notification.build()); } } Loading Loading
src/android/LocalNotificationReceiver.java +3 −3 Changes for src/android/LocalNotificationReceiver.java: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ public class LocalNotificationReceiver extends BroadcastReceiver { @SuppressWarnings("deprecation") @SuppressLint("NewApi") private void showNotification (Builder notification) { NotificationManager notificationMgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); NotificationManager mgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); int id = 0; try { Loading @@ -146,10 +146,10 @@ public class LocalNotificationReceiver extends BroadcastReceiver { if (Build.VERSION.SDK_INT<16) { // build notification for HoneyComb to ICS notificationMgr.notify(id, notification.getNotification()); mgr.notify(id, notification.getNotification()); } else if (Build.VERSION.SDK_INT>15) { // Notification for Jellybean and above notificationMgr.notify(id, notification.build()); mgr.notify(id, notification.build()); } } Loading