diff options
-rw-r--r-- | src/com/android/mail/MailIntentService.java | 5 | ||||
-rw-r--r-- | src/com/android/mail/utils/NotificationActionUtils.java | 13 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/com/android/mail/MailIntentService.java b/src/com/android/mail/MailIntentService.java index 7f04392b8..065e5fd7e 100644 --- a/src/com/android/mail/MailIntentService.java +++ b/src/com/android/mail/MailIntentService.java @@ -39,7 +39,6 @@ public class MailIntentService extends IntentService { "com.android.mail.action.RESEND_NOTIFICATIONS"; public static final String ACTION_CLEAR_NEW_MAIL_NOTIFICATIONS = "com.android.mail.action.CLEAR_NEW_MAIL_NOTIFICATIONS"; - public static final String ACTION_MARK_SEEN = "com.android.mail.action.MARK_SEEN"; public static final String ACTION_BACKUP_DATA_CHANGED = "com.android.mail.action.BACKUP_DATA_CHANGED"; @@ -73,10 +72,6 @@ public class MailIntentService extends IntentService { final Uri folderUri = intent.getParcelableExtra(Utils.EXTRA_FOLDER_URI); NotificationUtils.resendNotifications(this, false, accountUri, folderUri); - } else if (ACTION_MARK_SEEN.equals(action)) { - final Folder folder = intent.getParcelableExtra(Utils.EXTRA_FOLDER); - - NotificationUtils.markSeen(this, folder); } else if (Intent.ACTION_DEVICE_STORAGE_LOW.equals(action)) { // The storage_low state is recorded centrally even though // no handler might be present to change application state diff --git a/src/com/android/mail/utils/NotificationActionUtils.java b/src/com/android/mail/utils/NotificationActionUtils.java index 1f5284ed4..74d33560f 100644 --- a/src/com/android/mail/utils/NotificationActionUtils.java +++ b/src/com/android/mail/utils/NotificationActionUtils.java @@ -643,13 +643,10 @@ public class NotificationActionUtils { contentResolver.update(uri, values, null, null); } - - markSeen(context, folder, conversation); break; } case DELETE: { contentResolver.delete(uri, null, null); - markSeen(context, folder, conversation); break; } default: @@ -658,16 +655,6 @@ public class NotificationActionUtils { } } - private static void markSeen( - final Context context, final Folder folder, final Conversation conversation) { - final Intent intent = new Intent(MailIntentService.ACTION_MARK_SEEN); - intent.setPackage(context.getPackageName()); - intent.putExtra(Utils.EXTRA_FOLDER, folder); - intent.putExtra(MailIntentService.CONVERSATION_EXTRA, conversation); - - context.startService(intent); - } - /** * Creates and displays an Undo notification for the specified {@link NotificationAction}. */ |