From 5dd9842bdc893b1540d6e34f3f501293171d3a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 23 Sep 2015 22:35:21 -0700 Subject: [PATCH] UpdateService: contentIntent not necessary in 4.0 The workardound is necessary in <4.0, not <4.1. The "contentintent == null" check is gone in the 4.0.1 source tree. --- F-Droid/src/org/fdroid/fdroid/UpdateService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/F-Droid/src/org/fdroid/fdroid/UpdateService.java b/F-Droid/src/org/fdroid/fdroid/UpdateService.java index 1d3ab367a..5b44eaa9c 100644 --- a/F-Droid/src/org/fdroid/fdroid/UpdateService.java +++ b/F-Droid/src/org/fdroid/fdroid/UpdateService.java @@ -161,7 +161,7 @@ public class UpdateService extends IntentService implements ProgressListener { .setCategory(NotificationCompat.CATEGORY_SERVICE) .setContentTitle(getString(R.string.update_notification_title)); - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) { Intent intent = new Intent(this, FDroid.class); // TODO: Is this the correct FLAG? notificationBuilder.setContentIntent(PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT));