Make updateCards private

This commit is contained in:
Chumva 2019-03-20 21:29:20 +02:00
parent 8b2079dad4
commit 2a2aa93cb5
2 changed files with 4 additions and 14 deletions

View file

@ -391,13 +391,9 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
WeakReference<MapRouteInfoMenuFragment> fragmentRef = findMenuFragment();
MapRouteInfoMenuFragment fragment = fragmentRef != null ? fragmentRef.get() : null;
if (fragmentRef != null && fragment.isVisible()) {
if (setRouteCalculationInProgress(true)) {
fragment.updateRouteCalculationProgress(0);
fragment.updateControlButtons();
fragment.updateInfo();
} else {
fragment.updateCards();
}
fragment.updateRouteCalculationProgress(0);
fragment.updateControlButtons();
fragment.updateInfo();
}
}
@ -496,7 +492,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
updateCards();
}
public void updateCards() {
private void updateCards() {
MapActivity mapActivity = getMapActivity();
if (mapActivity == null) {
return;

View file

@ -807,12 +807,6 @@ public class MapRouteInfoMenuFragment extends BaseOsmAndFragment {
}
}
public void updateCards() {
if (menu != null) {
menu.updateCards();
}
}
public void updateLayout() {
if (menu != null) {
runLayoutListener();