Commit 851697fb by Sebastián Katzer

Some code cleanup

parent 271f999e
...@@ -137,7 +137,7 @@ public class LocalNotificationReceiver extends BroadcastReceiver { ...@@ -137,7 +137,7 @@ public class LocalNotificationReceiver extends BroadcastReceiver {
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@SuppressLint("NewApi") @SuppressLint("NewApi")
private void showNotification (Builder notification) { private void showNotification (Builder notification) {
NotificationManager notificationMgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); NotificationManager mgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
int id = 0; int id = 0;
try { try {
...@@ -146,10 +146,10 @@ public class LocalNotificationReceiver extends BroadcastReceiver { ...@@ -146,10 +146,10 @@ public class LocalNotificationReceiver extends BroadcastReceiver {
if (Build.VERSION.SDK_INT<16) { if (Build.VERSION.SDK_INT<16) {
// build notification for HoneyComb to ICS // build notification for HoneyComb to ICS
notificationMgr.notify(id, notification.getNotification()); mgr.notify(id, notification.getNotification());
} else if (Build.VERSION.SDK_INT>15) { } else if (Build.VERSION.SDK_INT>15) {
// Notification for Jellybean and above // Notification for Jellybean and above
notificationMgr.notify(id, notification.build()); mgr.notify(id, notification.build());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment