Back to sdk level 19 (#173)

here
cpfeiffer 2015-11-23 22:49:11 +01:00
parent 81c2f657bd
commit 95dc67c98d
2 changed files with 2 additions and 5 deletions

View File

@ -10,7 +10,7 @@ android {
defaultConfig {
applicationId "nodomain.freeyourgadget.gadgetbridge"
minSdkVersion 18
minSdkVersion 19
targetSdkVersion 23
versionCode 32
versionName "0.6.6"

View File

@ -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);