call stopLocationEngine() explicitly when stop shareing location for the last chat

This commit is contained in:
B. Petersen
2019-05-26 17:07:18 +02:00
parent 9ff568969d
commit 46c8073160
@@ -75,6 +75,9 @@ public class DcLocationManager implements Observer {
public void stopSharingLocation(int chatId) {
DcHelper.getContext(context).sendLocationsToChat(chatId, 0);
if(!DcHelper.getContext(context).isSendingLocationsToChat(0)) {
stopLocationEngine();
}
}
public void shareLocation(int duration, int chatId) {