From 95dc67c98da2480e390197d799ac94b325d18503 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Mon, 23 Nov 2015 22:49:11 +0100 Subject: [PATCH] Back to sdk level 19 (#173) --- app/build.gradle | 2 +- .../gadgetbridge/externalevents/NotificationListener.java | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index aa0fb1b7..a09ef1e0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ android { defaultConfig { applicationId "nodomain.freeyourgadget.gadgetbridge" - minSdkVersion 18 + minSdkVersion 19 targetSdkVersion 23 versionCode 32 versionName "0.6.6" diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java index 812fda76..5f0a82bc 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java @@ -218,14 +218,11 @@ public class NotificationListener extends NotificationListenerService { LOG.info("Processing notification from source " + source); - if (GBApplication.isRunningOnKitkatOrLater()) { - dissectNotificationTo(notification, notificationSpec); - } + dissectNotificationTo(notification, notificationSpec); notificationSpec.id = (int) sbn.getPostTime(); //FIMXE: a truly unique id would be better GBApplication.deviceService().onNotification(notificationSpec); } - @TargetApi(Build.VERSION_CODES.KITKAT) private void dissectNotificationTo(Notification notification, NotificationSpec notificationSpec) { Bundle extras = notification.extras; CharSequence title = extras.getCharSequence(Notification.EXTRA_TITLE);