Skip to content

Commit ae424a7

Browse files
committed
When switching profiles via automation, try to start logging again instead of waiting for time_before_logging to have elapsed.
Issue #930
1 parent 9e84dfb commit ae424a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gpslogger/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ android {
4444
minSdkVersion 16
4545
targetSdkVersion 30
4646

47-
versionCode 120
48-
versionName "120"
47+
versionCode 121
48+
versionName "121-rc1"
4949
}
5050

5151
buildTypes {

gpslogger/src/main/java/com/mendhak/gpslogger/GpsLoggingService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ private void handleIntent(Intent intent) {
211211
if(bundle.getString(IntentConstants.SWITCH_PROFILE) != null){
212212
LOG.info("Intent received - switch profile: " + bundle.getString(IntentConstants.SWITCH_PROFILE));
213213
EventBus.getDefault().post(new ProfileEvents.SwitchToProfile(bundle.getString(IntentConstants.SWITCH_PROFILE)));
214+
needToStartGpsManager = session.isStarted();
214215
}
215216

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

0 commit comments

Comments
 (0)