Show notification
This commit is contained in:
parent
653995556f
commit
59ad93d445
4 changed files with 10 additions and 5 deletions
|
@ -62,7 +62,6 @@ public class NotificationHelper {
|
|||
}
|
||||
};
|
||||
app.registerReceiver(stopBroadcastReceiver, new IntentFilter(OSMAND_STOP_GPX_SERVICE_ACTION));
|
||||
showNotification();
|
||||
}
|
||||
|
||||
public Builder buildNotificationInStatusBar() {
|
||||
|
|
|
@ -640,6 +640,7 @@ public class MapActivity extends AccessibleActivity {
|
|||
protected void onStart() {
|
||||
super.onStart();
|
||||
wakeLockHelper.onStart(this);
|
||||
getMyApplication().getNotificationHelper().showNotification();
|
||||
}
|
||||
|
||||
protected void setProgressDlg(Dialog progressDlg) {
|
||||
|
@ -670,10 +671,14 @@ public class MapActivity extends AccessibleActivity {
|
|||
getMyApplication().unsubscribeInitListener(initListener);
|
||||
mapViewTrackingUtilities.setMapView(null);
|
||||
cancelNotification();
|
||||
if(getMyApplication().getNavigationService() == null) {
|
||||
getMyApplication().getNotificationHelper().removeServiceNotification();
|
||||
}
|
||||
app.getResourceManager().getMapTileDownloader().removeDownloaderCallback(mapView);
|
||||
if (atlasMapRendererView != null) {
|
||||
atlasMapRendererView.handleOnDestroy();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void cancelNotification() {
|
||||
|
|
|
@ -454,9 +454,10 @@ public class SettingsGeneralActivity extends SettingsBaseActivity {
|
|||
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
Intent intent = getIntent();
|
||||
finish();
|
||||
startActivity(intent);
|
||||
android.os.Process.killProcess(android.os.Process.myPid());
|
||||
// Intent intent = getIntent();
|
||||
// finish();
|
||||
// startActivity(intent);
|
||||
}
|
||||
});
|
||||
bld.show();
|
||||
|
|
Loading…
Reference in a new issue