Skip to content

Commit

Permalink
Merge pull request #214 from AltBeacon/reset-background-mode
Browse files Browse the repository at this point in the history
backgroundMode-> false after stopping service, so it starts back up in foreground mode
  • Loading branch information
davidgyoung committed Jul 5, 2015
2 parents fa66ce1 + 414ba2b commit d4086c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/altbeacon/beacon/BeaconManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ public void unbind(BeaconConsumer consumer) {
// If this is the last consumer to disconnect, the service will exit
// release the serviceMessenger.
serviceMessenger = null;
// Reset the mBackgroundMode to false, which is the default value
// This way when we restart ranging or monitoring it will always be in
// foreground mode
mBackgroundMode = false;
}
}
else {
Expand Down

0 comments on commit d4086c6

Please sign in to comment.