diff --git a/OsmAnd-java/src/main/java/net/osmand/map/ITileSource.java b/OsmAnd-java/src/main/java/net/osmand/map/ITileSource.java index a51b5bdeeb..b33c232c29 100644 --- a/OsmAnd-java/src/main/java/net/osmand/map/ITileSource.java +++ b/OsmAnd-java/src/main/java/net/osmand/map/ITileSource.java @@ -24,7 +24,7 @@ public interface ITileSource { public boolean couldBeDownloadedFromInternet(); - public int getExpirationTimeMillis(); + public long getExpirationTimeMillis(); public int getExpirationTimeMinutes(); diff --git a/OsmAnd-java/src/main/java/net/osmand/map/MapTileDownloader.java b/OsmAnd-java/src/main/java/net/osmand/map/MapTileDownloader.java index 279b96c351..d18f12f68e 100644 --- a/OsmAnd-java/src/main/java/net/osmand/map/MapTileDownloader.java +++ b/OsmAnd-java/src/main/java/net/osmand/map/MapTileDownloader.java @@ -11,15 +11,12 @@ import java.net.URL; import java.net.URLConnection; import java.net.UnknownHostException; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Set; -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.BlockingDeque; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; @@ -310,4 +307,5 @@ public class MapTileDownloader { } } } + } diff --git a/OsmAnd-java/src/main/java/net/osmand/map/TileSourceManager.java b/OsmAnd-java/src/main/java/net/osmand/map/TileSourceManager.java index df6cd6a087..f71fcde0a1 100644 --- a/OsmAnd-java/src/main/java/net/osmand/map/TileSourceManager.java +++ b/OsmAnd-java/src/main/java/net/osmand/map/TileSourceManager.java @@ -61,7 +61,7 @@ public class TileSourceManager { private int avgSize; private int bitDensity; // -1 never expires, - private int expirationTimeMillis = -1; + private long expirationTimeMillis = -1; private boolean ellipticYTile; private String rule; private boolean hidden; // if hidden in configure map settings, for example mapillary sources @@ -141,7 +141,7 @@ public class TileSourceManager { return name; } - public void setExpirationTimeMillis(int timeMillis) { + public void setExpirationTimeMillis(long timeMillis) { this.expirationTimeMillis = timeMillis; } @@ -149,7 +149,7 @@ public class TileSourceManager { if(minutes < 0) { this.expirationTimeMillis = -1; } else { - this.expirationTimeMillis = minutes * 60 * 1000; + this.expirationTimeMillis = minutes * 60 * 1000l; } } @@ -157,10 +157,10 @@ public class TileSourceManager { if(expirationTimeMillis < 0) { return -1; } - return expirationTimeMillis / (60 * 1000); + return (int) (expirationTimeMillis / (60 * 1000)); } - public int getExpirationTimeMillis() { + public long getExpirationTimeMillis() { return expirationTimeMillis; } diff --git a/OsmAnd-java/src/main/java/net/osmand/search/SearchUICore.java b/OsmAnd-java/src/main/java/net/osmand/search/SearchUICore.java index c8449cc3c1..0e9d1b1fa7 100644 --- a/OsmAnd-java/src/main/java/net/osmand/search/SearchUICore.java +++ b/OsmAnd-java/src/main/java/net/osmand/search/SearchUICore.java @@ -401,6 +401,10 @@ public class SearchUICore { } public void search(final String text, final boolean delayedExecution, final ResultMatcher matcher) { + search(text, delayedExecution, matcher, searchSettings); + } + + public void search(final String text, final boolean delayedExecution, final ResultMatcher matcher, final SearchSettings searchSettings) { final int request = requestNumber.incrementAndGet(); final SearchPhrase phrase = this.phrase.generateNewPhrase(text, searchSettings); this.phrase = phrase; diff --git a/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml b/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml index 4e194a5643..a09cfd8b2f 100644 --- a/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml +++ b/OsmAnd-telegram/res/layout/fragement_settings_dialog.xml @@ -5,10 +5,10 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:fitsSystemWindows="true" android:orientation="vertical"> diff --git a/OsmAnd-telegram/res/layout/my_location_sharing_chat.xml b/OsmAnd-telegram/res/layout/my_location_sharing_chat.xml index 0c3d10b782..872b7b2afb 100644 --- a/OsmAnd-telegram/res/layout/my_location_sharing_chat.xml +++ b/OsmAnd-telegram/res/layout/my_location_sharing_chat.xml @@ -129,7 +129,7 @@ android:layout_gravity="center_vertical" android:layout_marginEnd="@dimen/content_padding_standard" android:layout_marginRight="@dimen/content_padding_standard" - android:text="@string/stop_sharing_chat" + android:text="@string/turn_off_location_sharing" android:textColor="?attr/ctrl_active_color" android:textSize="@dimen/hint_text_size" app:typeface="@string/font_roboto_medium" /> @@ -147,7 +147,7 @@ android:textColor="?android:attr/textColorSecondary" android:textSize="@dimen/hint_text_size" app:typeface="@string/font_roboto_regular" - tools:text="@string/stop_at" /> + tools:text="@string/expire_in" /> Send my location GPS & location Sharing time - Stop at + Expire in Sharing is enabled (disable) - Stop chat sharing + Turn off location sharing Open OsmAnd Live Bot diff --git a/OsmAnd-telegram/res/values/styles.xml b/OsmAnd-telegram/res/values/styles.xml index ee96512c6b..fb041f8ef0 100644 --- a/OsmAnd-telegram/res/values/styles.xml +++ b/OsmAnd-telegram/res/values/styles.xml @@ -25,7 +25,6 @@ @drawable/primary_btn_bg_light @color/primary_btn_text_light @drawable/secondary_btn_bg_light - true false true @drawable/bg_bottom_bar_shadow_with_line_day @@ -41,6 +40,11 @@ true + +