Skip to content

Commit

Permalink
Use an id resource for the notification id, so we don't collide with …
Browse files Browse the repository at this point in the history
…any notification IDs used by clients of the lib.
  • Loading branch information
Jason Feinstein committed May 5, 2016
1 parent af2b82a commit 1e2c3eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/jwf/debugport/DebugPortService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions library/src/main/res/values/ids.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="debugport_notification_id" type="id"/>
</resources>

0 comments on commit 1e2c3eb

Please sign in to comment.