mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
further simplification
This commit is contained in:
parent
ba26cfce90
commit
a9b0907c31
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user