Map: simplify updateMap

This commit is contained in:
Emux
2019-02-21 13:07:24 +02:00
parent 31077cb637
commit 7cfbe1c115
4 changed files with 27 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright 2017 Longri
* Copyright 2019 devemux86
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -69,6 +70,11 @@ public class MapAdapter extends Map implements Map.UpdateListener {
}
};
@Override
public void updateMap() {
updateMap(true);
}
@Override
public void updateMap(boolean forceRender) {
synchronized (mRedrawCb) {
@@ -81,7 +87,6 @@ public class MapAdapter extends Map implements Map.UpdateListener {
}
}
@Override
public void render() {
synchronized (mRedrawCb) {