diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index b0c19a1106..175ad01bb1 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -513,6 +513,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa @Override public void updateCompassValue(float value) { + //99 in next line used to one-time initalize arrows (with reference vs. fixed-north direction) on non-compass devices float lastHeading = heading != null ? heading : 99; heading = value; if (heading != null && Math.abs(MapUtils.degreesDiff(lastHeading, heading)) > 5) { diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java index ba07f3fc04..e783eb9869 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java @@ -211,6 +211,7 @@ public class DashFavoritesFragment extends DashBaseFragment { public void updateCompassValue(float value) { //heading = value; //updateArrows(); + //99 in next line used to one-time initalize arrows (with reference vs. fixed-north direction) on non-compass devices float lastHeading = heading != null ? heading : 99; heading = value; if (heading != null && Math.abs(MapUtils.degreesDiff(lastHeading, heading)) > 5) {