Skip to content

Commit

Permalink
Merge pull request #317 from backbonelabs/reset-foreground-control
Browse files Browse the repository at this point in the history
Clear Foreground Controls
  • Loading branch information
tuan-gobackbone authored Jun 15, 2017
2 parents 5be2d0d + a7aaaad commit 38db1df
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,10 @@ else if (uuid.equals(Constants.CHARACTERISTIC_UUIDS.SESSION_STATISTIC_CHARACTERI
wm.putInt("slouchTime", slouchTime);
EventEmitter.send(reactContext, "SessionStatistics", wm);

Intent stopIntent = new Intent(MainActivity.currentActivity, ForegroundService.class);
stopIntent.setAction(Constants.ACTIONS.STOP_POSTURE_FOREGROUND_SERVICE);
MainActivity.currentActivity.startService(stopIntent);

if (!forceStoppedSession) {
errorCallBack = null;

Expand Down

0 comments on commit 38db1df

Please sign in to comment.