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.
This commit is contained in:
parent
2642c14cb7
commit
5dd9842bdc
@ -161,7 +161,7 @@ public class UpdateService extends IntentService implements ProgressListener {
|
|||||||
.setCategory(NotificationCompat.CATEGORY_SERVICE)
|
.setCategory(NotificationCompat.CATEGORY_SERVICE)
|
||||||
.setContentTitle(getString(R.string.update_notification_title));
|
.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);
|
Intent intent = new Intent(this, FDroid.class);
|
||||||
// TODO: Is this the correct FLAG?
|
// TODO: Is this the correct FLAG?
|
||||||
notificationBuilder.setContentIntent(PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT));
|
notificationBuilder.setContentIntent(PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user