Fix RP cards

This commit is contained in:
crimean 2019-02-23 23:28:41 +03:00
parent 722475ab5b
commit 494d3882c1
2 changed files with 3 additions and 2 deletions

View file

@ -992,6 +992,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
private void clickRouteCancel() {
mapControlsLayer.stopNavigation();
setRouteCalculationInProgress(false);
}
private void clickRouteParams() {

View file

@ -367,12 +367,12 @@ public class MapRouteInfoMenuFragment extends BaseOsmAndFragment {
public int getStatusBarColorId() {
if (view != null) {
if (menu != null && (getViewY() <= 0 || !portrait)) {
if (Build.VERSION.SDK_INT >= 23) {
if (Build.VERSION.SDK_INT >= 23 && !nightMode) {
view.setSystemUiVisibility(view.getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
}
return nightMode ? R.color.dialog_divider_dark : R.color.dialog_divider_light;
} else {
if (Build.VERSION.SDK_INT >= 23) {
if (Build.VERSION.SDK_INT >= 23 && !nightMode) {
view.setSystemUiVisibility(view.getSystemUiVisibility() & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
}
}