forked from organicmaps/organicmaps
Review fixes
This commit is contained in:
parent
0c250523fd
commit
c93774f2bf
3 changed files with 4 additions and 3 deletions
|
@ -824,6 +824,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
@SuppressWarnings("unused")
|
||||
public void onMyPositionModeChangedCallback(final int newMode, final boolean routingActive)
|
||||
{
|
||||
//TODO(Android team): Use routingActive flag to change location polling frequency
|
||||
mLocationPredictor.myPositionModeChanged(newMode);
|
||||
mMainMenu.getMyPositionButton().update(newMode);
|
||||
switch (newMode)
|
||||
|
|
|
@ -764,7 +764,7 @@ public:
|
|||
class SetTimeInBackgroundMessage : public Message
|
||||
{
|
||||
public:
|
||||
SetTimeInBackgroundMessage(double time)
|
||||
explicit SetTimeInBackgroundMessage(double time)
|
||||
: m_time(time)
|
||||
{}
|
||||
|
||||
|
|
|
@ -280,8 +280,8 @@ void MyPositionController::OnLocationUpdate(location::GpsInfo const & info, bool
|
|||
m2::PointD const oldPos = GetDrawablePosition();
|
||||
double const oldAzimut = GetDrawableAzimut();
|
||||
|
||||
m2::RectD rect = MercatorBounds::MetresToXY(info.m_longitude, info.m_latitude,
|
||||
info.m_horizontalAccuracy);
|
||||
m2::RectD const rect = MercatorBounds::MetresToXY(info.m_longitude, info.m_latitude,
|
||||
info.m_horizontalAccuracy);
|
||||
m_position = rect.Center();
|
||||
m_errorRadius = rect.SizeX() * 0.5;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue