Skip to content

Commit

Permalink
Fix the notification messages for the foreground service notifications
Browse files Browse the repository at this point in the history
To actually match the operation that happens when the notification is generated
This is the fix described in e-mission/e-mission-docs#325 (comment)
  • Loading branch information
shankari committed Mar 28, 2019
1 parent a9abd31 commit 5d143f9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ActivityRecognitionChangeIntentService() {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(this, TAG, "onStartCommand called with intent "+intent+" flags "+flags+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", intent, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Recording activity ", intent, flags, startId);
return super.onStartCommand(intent, flags, startId);
}

Expand Down
2 changes: 1 addition & 1 deletion src/android/location/GeofenceExitIntentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void onStart(Intent i, int startId) {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(this, TAG, "onStartCommand called with intent "+intent+" flags "+flags+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", intent, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence exit ", intent, flags, startId);
return super.onStartCommand(intent, flags, startId);
}

Expand Down
2 changes: 1 addition & 1 deletion src/android/location/LocationChangeIntentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void onCreate() {
@Override
public int onStartCommand(Intent i, int flags, int startId) {
Log.d(this, TAG, "onStart called with "+i+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", i, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Recording location ", i, flags, startId);
return super.onStartCommand(i, flags, startId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onCreate() {
@Override
public int onStartCommand(Intent i, int flags, int startId) {
Log.d(this, TAG, "onStart called with "+i+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", i, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence creation", i, flags, startId);
return super.onStartCommand(i, flags, startId);
}

Expand Down

0 comments on commit 5d143f9

Please sign in to comment.