Commit 851697fb authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Some code cleanup

parent 271f999e
Loading
Loading
Loading
Loading
+3 −3
Changes for src/android/LocalNotificationReceiver.java: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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 {
@@ -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());
        }
	}