From 1e2c3ebf6e638ce1f9d07e6dda3cb657521bd05e Mon Sep 17 00:00:00 2001 From: Jason Feinstein Date: Thu, 5 May 2016 20:31:24 +0200 Subject: [PATCH] Use an id resource for the notification id, so we don't collide with any notification IDs used by clients of the lib. --- build.gradle | 2 +- library/src/main/java/jwf/debugport/DebugPortService.java | 2 +- library/src/main/res/values/ids.xml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 library/src/main/res/values/ids.xml diff --git a/build.gradle b/build.gradle index bfcba32..13d3a0b 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.0.0' + classpath 'com.android.tools.build:gradle:2.1.0' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' } } diff --git a/library/src/main/java/jwf/debugport/DebugPortService.java b/library/src/main/java/jwf/debugport/DebugPortService.java index a8984bf..0ce61fa 100644 --- a/library/src/main/java/jwf/debugport/DebugPortService.java +++ b/library/src/main/java/jwf/debugport/DebugPortService.java @@ -22,7 +22,7 @@ public class DebugPortService extends Service { private static final String INTENT_EXTRA_PARAMS = "jwf.debugport.PARAMS"; private static final String ACTION_STOP = "jwf.debugport.ACTION_STOP"; private static final int STOP_REQUEST_CODE = 0; - private static final int NOTIFICATION_ID = 0; + private static final int NOTIFICATION_ID = R.id.debugport_notification_id; private int mPort; private TelnetServer mServer; private PowerManager.WakeLock mWakeLock; diff --git a/library/src/main/res/values/ids.xml b/library/src/main/res/values/ids.xml new file mode 100644 index 0000000..945943e --- /dev/null +++ b/library/src/main/res/values/ids.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file