From bb17c53d4caeabf37e8b755adcd8614c5f45232a Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 26 Apr 2016 22:54:27 +0200 Subject: [PATCH] Fixed lint warnings. --- src/main/AndroidManifest.xml | 4 +++- .../nutomic/syncthingandroid/syncthing/AppConfigReceiver.java | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 0d48b0f9..c20520c9 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -1,5 +1,6 @@ @@ -91,7 +92,8 @@ - + diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/AppConfigReceiver.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/AppConfigReceiver.java index 791a40be..beb9d628 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/AppConfigReceiver.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/AppConfigReceiver.java @@ -1,5 +1,6 @@ package com.nutomic.syncthingandroid.syncthing; +import android.annotation.TargetApi; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; @@ -33,6 +34,7 @@ public class AppConfigReceiver extends BroadcastReceiver { public static final String ACTION_STOP = "com.nutomic.syncthingandroid.action.STOP"; @Override + @TargetApi(21) public void onReceive(Context context, Intent intent) { switch (intent.getAction()) { case ACTION_START: