diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-28 20:26:43 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-28 20:26:43 +0000 |
commit | 859e1e9302a47fd1cf5167cc43fbda10b1e051ac (patch) | |
tree | 205a7df644a3c041b065d01177eb189795285c8a /src/com/android/email/EmailNotificationController.java | |
parent | 192234c1485b1cf5f1177b5e3c5ea1ef58ae74e8 (diff) | |
parent | 1bfde93e51219462769a0251172c9d27e7642cb4 (diff) | |
download | Email-859e1e9302a47fd1cf5167cc43fbda10b1e051ac.tar.gz |
Snap for 6439596 from 1bfde93e51219462769a0251172c9d27e7642cb4 to qt-aml-tzdata-releaseq_tzdata_aml_297100400q_tzdata_aml_297100300q_tzdata_aml_297100000q_tzdata_aml_296200000q_tzdata_aml_295600118q_tzdata_aml_295600110q_tzdata_aml_295500002q_tzdata_aml_295500001q_tzdata_aml_294400310android-mainline-12.0.0_r54android-mainline-12.0.0_r111android-mainline-10.0.0_r13android-mainline-10.0.0_r12android-mainline-10.0.0_r11q_tzdata_aml_297100000android12-mainline-tzdata-releaseandroid10-mainline-tzdata-releaseandroid10-android13-mainline-tzdata-release
Change-Id: I9ececdcebb03be297a9ef636b616a7c22037e1a4
Diffstat (limited to 'src/com/android/email/EmailNotificationController.java')
-rw-r--r-- | src/com/android/email/EmailNotificationController.java | 29 |
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) { |