1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

further simplification

This commit is contained in:
Art O Cathain 2014-10-12 09:24:08 +01:00
parent ba26cfce90
commit a9b0907c31
2 changed files with 3 additions and 5 deletions

View File

@ -28,7 +28,7 @@ public class NotificationDeleteConfirmation extends Activity {
private Account mAccount;
private ArrayList<MessageReference> mMessageRefs;
public static <T extends List<MessageReference> & Serializable> PendingIntent getIntent(Context context, final Account account, final T refs) {
public static PendingIntent getIntent(Context context, final Account account, final Serializable refs) {
Intent i = new Intent(context, NotificationDeleteConfirmation.class);
i.putExtra(EXTRA_ACCOUNT, account.getUuid());
i.putExtra(EXTRA_MESSAGE_LIST, refs);

View File

@ -38,8 +38,7 @@ public class NotificationActionService extends CoreService {
return PendingIntent.getService(context, account.getAccountNumber(), i, PendingIntent.FLAG_UPDATE_CURRENT);
}
public static <T extends List<MessageReference> & Serializable> PendingIntent getReadAllMessagesIntent(Context context, final Account account,
final T refs) {
public static PendingIntent getReadAllMessagesIntent(Context context, final Account account, final Serializable refs) {
Intent i = new Intent(context, NotificationActionService.class);
i.putExtra(EXTRA_ACCOUNT, account.getUuid());
i.putExtra(EXTRA_MESSAGE_LIST, refs);
@ -56,8 +55,7 @@ public class NotificationActionService extends CoreService {
return PendingIntent.getService(context, account.getAccountNumber(), i, PendingIntent.FLAG_UPDATE_CURRENT);
}
public static <T extends List<MessageReference> & Serializable> Intent getDeleteAllMessagesIntent(Context context, final Account account,
final T refs) {
public static Intent getDeleteAllMessagesIntent(Context context, final Account account, final Serializable refs) {
Intent i = new Intent(context, NotificationActionService.class);
i.putExtra(EXTRA_ACCOUNT, account.getUuid());
i.putExtra(EXTRA_MESSAGE_LIST, refs);