Fix customization
This commit is contained in:
parent
1501e447d1
commit
dd074b5c2f
2 changed files with 3 additions and 2 deletions
|
@ -190,9 +190,11 @@ public class OsmandAidlApi {
|
||||||
registerMuteNavigationReceiver(mapActivity);
|
registerMuteNavigationReceiver(mapActivity);
|
||||||
registerUnmuteNavigationReceiver(mapActivity);
|
registerUnmuteNavigationReceiver(mapActivity);
|
||||||
initOsmandTelegram();
|
initOsmandTelegram();
|
||||||
|
app.getAppCustomization().addListener(mapActivity);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDestroyMapActivity(MapActivity mapActivity) {
|
public void onDestroyMapActivity(MapActivity mapActivity) {
|
||||||
|
app.getAppCustomization().removeListener(mapActivity);
|
||||||
mapActivityActive = false;
|
mapActivityActive = false;
|
||||||
for (BroadcastReceiver b : receivers.values()) {
|
for (BroadcastReceiver b : receivers.values()) {
|
||||||
if(b == null) {
|
if(b == null) {
|
||||||
|
|
|
@ -209,7 +209,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
||||||
private boolean pendingPause = false;
|
private boolean pendingPause = false;
|
||||||
private Timer splashScreenTimer;
|
private Timer splashScreenTimer;
|
||||||
private boolean activityRestartNeeded = false;
|
private boolean activityRestartNeeded = false;
|
||||||
private boolean stopped = false;
|
private boolean stopped = true;
|
||||||
|
|
||||||
private ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();
|
private ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();
|
||||||
|
|
||||||
|
@ -328,7 +328,6 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
||||||
registerReceiver(screenOffReceiver, filter);
|
registerReceiver(screenOffReceiver, filter);
|
||||||
|
|
||||||
app.getAidlApi().onCreateMapActivity(this);
|
app.getAidlApi().onCreateMapActivity(this);
|
||||||
app.getAppCustomization().addListener(this);
|
|
||||||
|
|
||||||
mIsDestroyed = false;
|
mIsDestroyed = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue