diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt index bd85fa36c0..42ba73d4cc 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt @@ -461,7 +461,7 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage this@LiveNowTabFragment, app.getExternalFilesDir(null), item.userId, - 60 * 60 * 6 * 1000 + 60 * 60 * 24 * 1000 ) true } @@ -492,7 +492,7 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage this@LiveNowTabFragment, app.getExternalFilesDir(null), currentUserId, - 60 * 60 * 6 * 1000 + 60 * 60 * 24 * 1000 ) } } diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml index 026618088c..b76a33db3e 100644 --- a/OsmAnd/AndroidManifest.xml +++ b/OsmAnd/AndroidManifest.xml @@ -182,8 +182,11 @@ + + + diff --git a/OsmAnd/assets/bundled_assets.xml b/OsmAnd/assets/bundled_assets.xml index f310f26820..9bdaf89662 100644 --- a/OsmAnd/assets/bundled_assets.xml +++ b/OsmAnd/assets/bundled_assets.xml @@ -21,6 +21,7 @@ + diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 7cc362c196..47e5cf8f0c 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -1511,6 +1511,7 @@ Ukrainian Vietnamese Welsh + GuaranĂ­ North America - Canada Europe - Italy Europe - Great Britain diff --git a/OsmAnd/src/net/osmand/plus/activities/actions/StartGPSStatus.java b/OsmAnd/src/net/osmand/plus/activities/actions/StartGPSStatus.java index d49079edd0..900cb464da 100644 --- a/OsmAnd/src/net/osmand/plus/activities/actions/StartGPSStatus.java +++ b/OsmAnd/src/net/osmand/plus/activities/actions/StartGPSStatus.java @@ -35,7 +35,9 @@ public class StartGPSStatus extends OsmAndAction { GPS_TEST("GPS Test", "com.chartcross.gpstest", "com.chartcross.gpstestplus", ""), INVIU_GPS("inViu GPS-details ", "de.enaikoon.android.inviu.gpsdetails", "", ""), ANDROI_TS_GPS_TEST("AndroiTS GPS Test", "com.androits.gps.test.free", "com.androits.gps.test.pro", ""), - SAT_STAT("SatStat (F-droid)", "com.vonglasow.michael.satstat", "", ""); + SAT_STAT("SatStat (F-droid)", "com.vonglasow.michael.satstat", "", ""), + GPSTESTSS("GPSTest (F-droid)", "com.android.gpstest", "", ""); + public final String stringRes; public final String appName; diff --git a/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java b/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java index e655960eea..4e3fa2093e 100644 --- a/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java +++ b/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java @@ -239,7 +239,7 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc } public static boolean isSmallSpeedForDirectionOfMovement(Location location, float speedToDirectionOfMovement) { - return !location.hasSpeed() || location.getSpeed() < speedToDirectionOfMovement; + return !location.hasSpeed() || location.getSpeed()* 3.6 < speedToDirectionOfMovement; } public static boolean isSmallSpeedForCompass(Location location) { diff --git a/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java b/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java index b9df08a3ba..f6fd3b8cf7 100644 --- a/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java +++ b/OsmAnd/src/net/osmand/plus/views/TurnPathHelper.java @@ -591,10 +591,15 @@ public class TurnPathHelper { } } else if (turnIndex == SECOND_TURN) { if (TurnType.isLeftTurn(firstTurnType) && TurnType.isLeftTurn(secondTurnType)) { - turnResource = null; + if(TurnType.isSlightTurn(firstTurnType)) + turnResource = new TurnResource(secondTurnType, true, false, leftSide); + else turnResource = null; } else if (TurnType.isRightTurn(firstTurnType) && TurnType.isRightTurn(secondTurnType)) { - turnResource = null; - } else if (firstTurnType == TurnType.C || thirdTurnType == TurnType.C) { + if(TurnType.isSlightTurn(firstTurnType)) + turnResource = new TurnResource(secondTurnType, true, false, leftSide); + else turnResource = null; + } else + if (firstTurnType == TurnType.C || thirdTurnType == TurnType.C) { // get the small one turnResource = new TurnResource(secondTurnType, true, false, leftSide); } else {