Merge branch 'master' into Fix_gpx_select
# Conflicts: # OsmAnd/res/layout/gpx_track_item.xml
|
@ -428,7 +428,10 @@ public class BinaryMapIndexReader {
|
||||||
if (ls.endsWith("_2")) {
|
if (ls.endsWith("_2")) {
|
||||||
ls = ls.substring(0, ls.length() - "_2".length());
|
ls = ls.substring(0, ls.length() - "_2".length());
|
||||||
}
|
}
|
||||||
return ls.substring(0, ls.lastIndexOf('_')).replace('_', ' ');
|
if (ls.lastIndexOf('_') != -1) {
|
||||||
|
ls = ls.substring(0, ls.lastIndexOf('_')).replace('_', ' ');
|
||||||
|
}
|
||||||
|
return ls;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1011,6 +1011,17 @@ public class RouteDataObject {
|
||||||
rf == null ? "" : rf);
|
rf == null ? "" : rf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasNameTagStartsWith(String tagStartsWith) {
|
||||||
|
int[] nextSegmentNameIds = nameIds;
|
||||||
|
for (int nm = 0; nm < nameIds.length; nm++) {
|
||||||
|
RouteTypeRule rtr = region.quickGetEncodingRule(nameIds[nm]);
|
||||||
|
if (rtr != null && rtr.getTag().startsWith(tagStartsWith)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public static class RestrictionInfo {
|
public static class RestrictionInfo {
|
||||||
public int type;
|
public int type;
|
||||||
public long toWay;
|
public long toWay;
|
||||||
|
|
|
@ -291,8 +291,14 @@ public class SearchUICore {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public <T extends SearchCoreAPI> SearchResultCollection shallowSearch(Class<T> cl,
|
public <T extends SearchCoreAPI> SearchResultCollection shallowSearch(Class<T> cl, String text,
|
||||||
String text, final ResultMatcher<SearchResult> matcher) throws IOException {
|
ResultMatcher<SearchResult> matcher) throws IOException {
|
||||||
|
return shallowSearch(cl, text, matcher, true, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public <T extends SearchCoreAPI> SearchResultCollection shallowSearch(Class<T> cl, String text,
|
||||||
|
final ResultMatcher<SearchResult> matcher,
|
||||||
|
boolean resortAll, boolean removeDuplicates) throws IOException {
|
||||||
T api = getApiByClass(cl);
|
T api = getApiByClass(cl);
|
||||||
if (api != null) {
|
if (api != null) {
|
||||||
if (debugMode) {
|
if (debugMode) {
|
||||||
|
@ -306,7 +312,7 @@ public class SearchUICore {
|
||||||
|
|
||||||
SearchResultCollection collection = new SearchResultCollection(
|
SearchResultCollection collection = new SearchResultCollection(
|
||||||
sphrase);
|
sphrase);
|
||||||
collection.addSearchResults(rm.getRequestResults(), true, true);
|
collection.addSearchResults(rm.getRequestResults(), resortAll, removeDuplicates);
|
||||||
if (debugMode) {
|
if (debugMode) {
|
||||||
LOG.info("Finish shallow search <" + sphrase + "> Results=" + rm.getRequestResults().size());
|
LOG.info("Finish shallow search <" + sphrase + "> Results=" + rm.getRequestResults().size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,8 +307,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:drawableStart="@drawable/ic_action_undo"
|
app:drawableLeftCompat="@drawable/ic_action_undo"
|
||||||
android:drawableLeft="@drawable/ic_action_undo"
|
app:drawableStartCompat="@drawable/ic_action_undo"
|
||||||
android:drawablePadding="@dimen/my_location_text_sides_margin"
|
android:drawablePadding="@dimen/my_location_text_sides_margin"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/list_item_height_min"
|
android:minHeight="@dimen/list_item_height_min"
|
||||||
|
@ -341,9 +341,9 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
android:background="@drawable/extended_fab_bg"
|
android:background="@drawable/extended_fab_bg"
|
||||||
android:drawableLeft="@drawable/ic_action_share_location"
|
app:drawableLeftCompat="@drawable/ic_action_share_location"
|
||||||
|
app:drawableStartCompat="@drawable/ic_action_share_location"
|
||||||
android:drawablePadding="@dimen/content_padding_half"
|
android:drawablePadding="@dimen/content_padding_half"
|
||||||
android:drawableStart="@drawable/ic_action_share_location"
|
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingLeft="32dp"
|
android:paddingLeft="32dp"
|
||||||
android:paddingRight="32dp"
|
android:paddingRight="32dp"
|
||||||
|
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.2 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_bug.png
Normal file
After Width: | Height: | Size: 361 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_pause.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_play.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_rec_start.png
Normal file
After Width: | Height: | Size: 311 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_rec_stop.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_remove.png
Normal file
After Width: | Height: | Size: 280 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_save.png
Normal file
After Width: | Height: | Size: 413 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_start_navigation.png
Normal file
After Width: | Height: | Size: 531 B |
BIN
OsmAnd/res/drawable-hdpi/ic_notification_track.png
Normal file
After Width: | Height: | Size: 534 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 588 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.1 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_bug.png
Normal file
After Width: | Height: | Size: 273 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_pause.png
Normal file
After Width: | Height: | Size: 159 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_play.png
Normal file
After Width: | Height: | Size: 246 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_rec_start.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_rec_stop.png
Normal file
After Width: | Height: | Size: 156 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_remove.png
Normal file
After Width: | Height: | Size: 216 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_save.png
Normal file
After Width: | Height: | Size: 276 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_start_navigation.png
Normal file
After Width: | Height: | Size: 386 B |
BIN
OsmAnd/res/drawable-mdpi/ic_notification_track.png
Normal file
After Width: | Height: | Size: 338 B |
Before Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 380 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_bug.png
Normal file
After Width: | Height: | Size: 403 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_pause.png
Normal file
After Width: | Height: | Size: 182 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_play.png
Normal file
After Width: | Height: | Size: 365 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_rec_start.png
Normal file
After Width: | Height: | Size: 384 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_rec_stop.png
Normal file
After Width: | Height: | Size: 176 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_remove.png
Normal file
After Width: | Height: | Size: 345 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_save.png
Normal file
After Width: | Height: | Size: 431 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_start_navigation.png
Normal file
After Width: | Height: | Size: 658 B |
BIN
OsmAnd/res/drawable-xhdpi/ic_notification_track.png
Normal file
After Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 705 B |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.1 KiB |