Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ec6c03e909
2 changed files with 6 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue