From e74b18ed3f7a6bcfdb9e7c9ca19b9ff8bacae1e7 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Sun, 1 Jan 2017 15:00:46 +0100 Subject: [PATCH] Fixed bug where network notification couldn't be dismissed and updated build tools --- app/build.gradle | 2 +- .../ch/dissem/apps/abit/notification/NetworkNotification.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index f96adba..c78c327 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,7 @@ if (project.hasProperty("project.configs") //noinspection GroovyMissingReturnStatement android { compileSdkVersion 25 - buildToolsVersion "25.0.1" + buildToolsVersion "25.0.2" defaultConfig { applicationId "ch.dissem.apps." + appName.toLowerCase() diff --git a/app/src/main/java/ch/dissem/apps/abit/notification/NetworkNotification.java b/app/src/main/java/ch/dissem/apps/abit/notification/NetworkNotification.java index 606c389..4a11cc2 100644 --- a/app/src/main/java/ch/dissem/apps/abit/notification/NetworkNotification.java +++ b/app/src/main/java/ch/dissem/apps/abit/notification/NetworkNotification.java @@ -109,6 +109,7 @@ public class NetworkNotification extends AbstractNotification { public void run() { if (!update()) { cancel(); + ctx.stopService(new Intent(ctx, BitmessageService.class)); } NetworkNotification.super.show(); }