diff options
author | Scott Kennedy <skennedy@google.com> | 2013-05-05 15:06:52 -0700 |
---|---|---|
committer | Scott Kennedy <skennedy@google.com> | 2013-05-05 15:06:52 -0700 |
commit | f78c53b07082f7b9ac836819981d07b51eb93bf4 (patch) | |
tree | 8177164dac7f9941558bd4f80701bad543db38d4 | |
parent | 193e05a8c38b87c400ac594b53b54eb211d35602 (diff) | |
download | android_packages_apps_UnifiedEmail-f78c53b07082f7b9ac836819981d07b51eb93bf4.tar.gz android_packages_apps_UnifiedEmail-f78c53b07082f7b9ac836819981d07b51eb93bf4.tar.bz2 android_packages_apps_UnifiedEmail-f78c53b07082f7b9ac836819981d07b51eb93bf4.zip |
Remove MARK_SEEN action
This was never being acknowledged, and the only place that was using
it shouldn't have been using it.
Bug: 8816083
Change-Id: I4a4702b76bf006dd471f3e80f4032736aab42a5a
-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}. */ |