Skip to content

Commit 066e3a8

Browse files
committed
now location service will stop as well on stoping ain service
1 parent b217b87 commit 066e3a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ats-sdk/src/main/java/com/apporioinfolabs/ats_sdk/AtsLocationServiceClass.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public void onMessageEvent(Location location){
130130
@Override
131131
public void onDestroy() {
132132
EventBus.getDefault().unregister(this);
133+
atsLocationManager.stopLocationUpdates();
133134
super.onDestroy();
134135
}
135136

0 commit comments

Comments
 (0)