Skip to content

Commit

Permalink
Local variable hides class field
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabiszewski committed May 11, 2017
1 parent d4f3a47 commit 1bf18b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/net/fabiszewski/ulogger/LoggerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {
handlePrefsUpdated();
} else if (isRunning) {
// first start
showNotification(mNotificationManager, NOTIFICATION_ID);
showNotification(NOTIFICATION_ID);
} else {
// onCreate failed to start updates
stopSelf();
Expand Down Expand Up @@ -322,10 +322,9 @@ public void run() {
/**
* Show notification
*
* @param mNotificationManager Notification manager
* @param mId Notification Id
*/
private void showNotification(NotificationManager mNotificationManager, int mId) {
private void showNotification(int mId) {
if (Logger.DEBUG) { Log.d(TAG, "[showNotification " + mId + "]"); }

NotificationCompat.Builder mBuilder =
Expand Down

0 comments on commit 1bf18b6

Please sign in to comment.