forked from organicmaps/organicmaps
[new downloader][android] fix: Do not show on-map downloader while navigating.
This commit is contained in:
parent
09473177b0
commit
9ca265e281
2 changed files with 5 additions and 2 deletions
|
@ -1307,6 +1307,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
adjustZoomButtons();
|
||||
mPlacePage.refreshViews();
|
||||
mNavigationController.show(show);
|
||||
mOnmapDownloader.updateState();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue