Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-09-27 22:55:05 +02:00
commit ec6c03e909
2 changed files with 6 additions and 9 deletions

View file

@ -158,13 +158,10 @@ public class NotificationHelper {
if(newNotification != null) {
mNotificationManager.notify(NOTIFICATION_SERVICE_ID, newNotification.build());
}
// if (stopBroadcastReceiver != null) {
// app.unregisterReceiver(stopBroadcastReceiver);
// stopBroadcastReceiver = null;
// }
// if (saveBroadcastReceiver != null) {
// app.unregisterReceiver(saveBroadcastReceiver);
// saveBroadcastReceiver = null;
// }
}
public void removeServiceNotificationCompletely() {
NotificationManager mNotificationManager = (NotificationManager) app.getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.cancel( NOTIFICATION_SERVICE_ID);
}
}

View file

@ -672,7 +672,7 @@ public class MapActivity extends AccessibleActivity {
mapViewTrackingUtilities.setMapView(null);
cancelNotification();
if(getMyApplication().getNavigationService() == null) {
getMyApplication().getNotificationHelper().removeServiceNotification();
getMyApplication().getNotificationHelper().removeServiceNotificationCompletely();
}
app.getResourceManager().getMapTileDownloader().removeDownloaderCallback(mapView);
if (atlasMapRendererView != null) {