|
@@ -27,7 +27,6 @@ import android.app.NotificationManager;
|
|
|
import android.app.PendingIntent;
|
|
|
import android.content.Context;
|
|
|
import android.os.Messenger;
|
|
|
-import android.support.v4.app.NotificationCompat;
|
|
|
|
|
|
/**
|
|
|
* This class handles displaying the notification associated with the download
|
|
@@ -49,9 +48,8 @@ public class DownloadNotification implements IDownloaderClient {
|
|
|
|
|
|
private IDownloaderClient mClientProxy;
|
|
|
final ICustomNotification mCustomNotification;
|
|
|
- // NotificationCompat.Builder is used to support API < 16. This can be changed to Notification.Builder if minimum API >= 16.
|
|
|
- private NotificationCompat.Builder mNotificationBuilder;
|
|
|
- private NotificationCompat.Builder mCurrentNotificationBuilder;
|
|
|
+ private Notification.Builder mNotificationBuilder;
|
|
|
+ private Notification.Builder mCurrentNotificationBuilder;
|
|
|
private CharSequence mLabel;
|
|
|
private String mCurrentText;
|
|
|
private PendingIntent mContentIntent;
|
|
@@ -187,7 +185,7 @@ public class DownloadNotification implements IDownloaderClient {
|
|
|
|
|
|
void setTimeRemaining(long timeRemaining);
|
|
|
|
|
|
- NotificationCompat.Builder updateNotification(Context c);
|
|
|
+ Notification.Builder updateNotification(Context c);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -220,7 +218,7 @@ public class DownloadNotification implements IDownloaderClient {
|
|
|
mContext.getSystemService(Context.NOTIFICATION_SERVICE);
|
|
|
mCustomNotification = CustomNotificationFactory
|
|
|
.createCustomNotification();
|
|
|
- mNotificationBuilder = new NotificationCompat.Builder(ctx);
|
|
|
+ mNotificationBuilder = new Notification.Builder(ctx);
|
|
|
mCurrentNotificationBuilder = mNotificationBuilder;
|
|
|
|
|
|
}
|