diff --git a/android/res/layout/fragment_routing.xml b/android/res/layout/fragment_routing.xml
index 7c2af75ca1..ac7d2610ac 100644
--- a/android/res/layout/fragment_routing.xml
+++ b/android/res/layout/fragment_routing.xml
@@ -23,6 +23,19 @@
layout="@layout/routing_action_panel"
android:visibility="gone"/>
+
+
products = info.getProducts();
mTaxiInfo = info;
@@ -263,6 +270,7 @@ final class RoutingBottomMenuController implements View.OnClickListener
void showError(@StringRes int message)
{
+ mErrorMessage = message;
UiUtils.hide(mTaxiFrame, mAltitudeChartFrame);
mError.setText(message);
mError.setVisibility(View.VISIBLE);
@@ -278,6 +286,8 @@ final class RoutingBottomMenuController implements View.OnClickListener
{
outState.putBoolean(STATE_ALTITUDE_CHART_SHOWN, UiUtils.isVisible(mAltitudeChartFrame));
outState.putParcelable(STATE_TAXI_INFO, mTaxiInfo);
+ if (mErrorMessage > 0)
+ outState.putInt(STATE_ERROR, mErrorMessage);
}
void restoreRoutingPanelState(@NonNull Bundle state)
@@ -288,6 +298,10 @@ final class RoutingBottomMenuController implements View.OnClickListener
TaxiInfo info = state.getParcelable(STATE_TAXI_INFO);
if (info != null)
showTaxiInfo(info);
+
+ int error = state.getInt(STATE_ERROR);
+ if (error > 0)
+ showError(error);
}
private void showRouteAltitudeChart()