Skip to content

Commit 1e2c3eb

Browse files
author
Jason Feinstein
committed
Use an id resource for the notification id, so we don't collide with any notification IDs used by clients of the lib.
1 parent af2b82a commit 1e2c3eb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.0.0'
8+
classpath 'com.android.tools.build:gradle:2.1.0'
99
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
1010
}
1111
}

library/src/main/java/jwf/debugport/DebugPortService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class DebugPortService extends Service {
2222
private static final String INTENT_EXTRA_PARAMS = "jwf.debugport.PARAMS";
2323
private static final String ACTION_STOP = "jwf.debugport.ACTION_STOP";
2424
private static final int STOP_REQUEST_CODE = 0;
25-
private static final int NOTIFICATION_ID = 0;
25+
private static final int NOTIFICATION_ID = R.id.debugport_notification_id;
2626
private int mPort;
2727
private TelnetServer mServer;
2828
private PowerManager.WakeLock mWakeLock;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<item name="debugport_notification_id" type="id"/>
4+
</resources>

0 commit comments

Comments
 (0)