Skip to content

Commit

Permalink
When switching profiles via automation, try to start logging again in…
Browse files Browse the repository at this point in the history
…stead of waiting for time_before_logging to have elapsed.

Issue #930
  • Loading branch information
mendhak committed Feb 15, 2022
1 parent 9e84dfb commit ae424a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpslogger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ android {
minSdkVersion 16
targetSdkVersion 30

versionCode 120
versionName "120"
versionCode 121
versionName "121-rc1"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ private void handleIntent(Intent intent) {
if(bundle.getString(IntentConstants.SWITCH_PROFILE) != null){
LOG.info("Intent received - switch profile: " + bundle.getString(IntentConstants.SWITCH_PROFILE));
EventBus.getDefault().post(new ProfileEvents.SwitchToProfile(bundle.getString(IntentConstants.SWITCH_PROFILE)));
needToStartGpsManager = session.isStarted();
}

if (bundle.get(IntentConstants.PREFER_CELLTOWER) != null) {
Expand Down

0 comments on commit ae424a7

Please sign in to comment.