summaryrefslogtreecommitdiff
path: root/src/com/android/email/EmailNotificationController.java
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-04-28 20:26:43 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-04-28 20:26:43 +0000
commit859e1e9302a47fd1cf5167cc43fbda10b1e051ac (patch)
tree205a7df644a3c041b065d01177eb189795285c8a /src/com/android/email/EmailNotificationController.java
parent192234c1485b1cf5f1177b5e3c5ea1ef58ae74e8 (diff)
parent1bfde93e51219462769a0251172c9d27e7642cb4 (diff)
downloadEmail-859e1e9302a47fd1cf5167cc43fbda10b1e051ac.tar.gz
Change-Id: I9ececdcebb03be297a9ef636b616a7c22037e1a4
Diffstat (limited to 'src/com/android/email/EmailNotificationController.java')
-rw-r--r--src/com/android/email/EmailNotificationController.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/com/android/email/EmailNotificationController.java b/src/com/android/email/EmailNotificationController.java
index c9254adc4..6773f1bee 100644
--- a/src/com/android/email/EmailNotificationController.java
+++ b/src/com/android/email/EmailNotificationController.java
@@ -68,10 +68,6 @@ public class EmailNotificationController implements NotificationController {
private static final int NOTIFICATION_ID_ATTACHMENT_WARNING = 3;
private static final int NOTIFICATION_ID_PASSWORD_EXPIRING = 4;
private static final int NOTIFICATION_ID_PASSWORD_EXPIRED = 5;
- private static final int NOTIFICATION_ID_PERMISSIONS_NEEDED = 6;
- public static final int NOTIFICATION_ID_ONGOING_ATTACHMENT = 7;
-
- public static final String NOTIFICATION_CHANNEL_ID_ATTACHMENTS = "^nc_~_z_attachments";
private static final int NOTIFICATION_ID_BASE_MASK = 0xF0000000;
private static final int NOTIFICATION_ID_BASE_LOGIN_WARNING = 0x20000000;
@@ -405,31 +401,6 @@ public class EmailNotificationController implements NotificationController {
}
/**
- * Creates a notification to be used with {@link com.android.email.service.AttachmentService},
- * which should be launched as a foreground service on Android O+.
- *
- * <p>The notification is sent with the lowest priority and contains an indefinite loading bar,
- * hence "ongoing".
- *
- * @param title The text that will be displayed on the ongoing notification.
- */
- public static Notification getOngoingDownloadNotification(Context context, String title) {
- NotificationCompat.Builder builder =
- new NotificationCompat.Builder(context)
- .setContentTitle(title)
- .setVisibility(Notification.VISIBILITY_SECRET)
- .setProgress(0, 0, true)
- .setSmallIcon(R.drawable.ic_notification_mail_24dp)
- .setOngoing(true);
-
- if (context.getApplicationInfo().targetSdkVersion >= android.os.Build.VERSION_CODES.O) {
- builder.setChannelId(NOTIFICATION_CHANNEL_ID_ATTACHMENTS);
- }
-
- return builder.build();
- }
-
- /**
* Returns a notification ID for login failed notifications for the given account account.
*/
private static int getLoginFailedNotificationId(long accountId) {