1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 09:38:52 -05:00

Added annotations to disable Lint warnings when we're using newer APIs

This commit is contained in:
cketti 2012-07-07 14:38:57 +02:00
parent ece107f6d8
commit 1f2104cae1
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.fsck.k9.helper;
import android.annotation.TargetApi;
import android.content.ClipData;
import android.content.Context;
import android.content.ClipboardManager;
@ -7,6 +8,7 @@ import android.content.ClipboardManager;
/**
* Access the system clipboard using the new {@link ClipboardManager} introduced with API 11
*/
@TargetApi(11)
public class ClipboardManagerApi11 extends com.fsck.k9.helper.ClipboardManager {
public ClipboardManagerApi11(Context context) {

View File

@ -1,5 +1,6 @@
package com.fsck.k9.helper;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
@ -9,6 +10,7 @@ import android.net.Uri;
/**
* Create notifications using the new {@link android.app.Notification.Builder} class.
*/
@TargetApi(11)
public class NotificationBuilderApi11 extends NotificationBuilder {
private Notification.Builder mBuilder;