summaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/email/EmailNotificationController.java29
-rw-r--r--src/com/android/email/activity/ComposeActivityEmailExternal.java3
2 files changed, 1 insertions, 31 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) {
diff --git a/src/com/android/email/activity/ComposeActivityEmailExternal.java b/src/com/android/email/activity/ComposeActivityEmailExternal.java
index a9967c46b..07f6fe160 100644
--- a/src/com/android/email/activity/ComposeActivityEmailExternal.java
+++ b/src/com/android/email/activity/ComposeActivityEmailExternal.java
@@ -18,7 +18,6 @@ package com.android.email.activity;
import android.content.Intent;
import android.os.Bundle;
-import androidx.annotation.Nullable;
import com.android.mail.compose.ComposeActivity;
/**
@@ -27,7 +26,7 @@ import com.android.mail.compose.ComposeActivity;
public class ComposeActivityEmailExternal extends ComposeActivityEmail {
@Override
- protected void onCreate(@Nullable Bundle savedInstanceState) {
+ protected void onCreate(Bundle savedInstanceState) {
sanitizeIntent();
super.onCreate(savedInstanceState);
}