[new downloader][android] fix: Do not show on-map downloader while navigating.

This commit is contained in:
Alexander Marchuk 2016-03-03 17:59:34 +03:00 committed by Sergey Yershov
parent 09473177b0
commit 9ca265e281
2 changed files with 5 additions and 2 deletions

View file

@ -1307,6 +1307,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
adjustZoomButtons();
mPlacePage.refreshViews();
mNavigationController.show(show);
mOnmapDownloader.updateState();
}
@Override

View file

@ -10,6 +10,7 @@ import java.util.List;
import com.mapswithme.maps.MwmActivity;
import com.mapswithme.maps.R;
import com.mapswithme.maps.routing.RoutingController;
import com.mapswithme.maps.widget.WheelProgressView;
import com.mapswithme.util.Config;
import com.mapswithme.util.ConnectionState;
@ -69,9 +70,10 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
}
};
private void updateState()
public void updateState()
{
boolean showFrame = (mCurrentCountry != null);
boolean showFrame = (mCurrentCountry != null &&
!RoutingController.get().isNavigating());
if (showFrame)
{
boolean enqueued = (mCurrentCountry.status == CountryItem.STATUS_ENQUEUED);