Merge remote-tracking branch 'origin/master'
|
@ -42,6 +42,7 @@ public class GeoPointParserUtil {
|
||||||
"geo:0,0?m",
|
"geo:0,0?m",
|
||||||
"geo:0,0?m=",
|
"geo:0,0?m=",
|
||||||
"geo:0,0?m=foo",
|
"geo:0,0?m=foo",
|
||||||
|
"geo:0,0?q=%D0%9D%D0",
|
||||||
"http://download.osmand.net/go?lat",
|
"http://download.osmand.net/go?lat",
|
||||||
"http://download.osmand.net/go?lat=",
|
"http://download.osmand.net/go?lat=",
|
||||||
"http://download.osmand.net/go?lat=34.99393",
|
"http://download.osmand.net/go?lat=34.99393",
|
||||||
|
@ -786,6 +787,7 @@ public class GeoPointParserUtil {
|
||||||
* @return {@link GeoParsedPoint}
|
* @return {@link GeoParsedPoint}
|
||||||
*/
|
*/
|
||||||
public static GeoParsedPoint parse(final String uriString) {
|
public static GeoParsedPoint parse(final String uriString) {
|
||||||
|
System.out.println("parse(" + "uriString=" + uriString + ")");
|
||||||
URI uri;
|
URI uri;
|
||||||
try {
|
try {
|
||||||
// amap.com uses | in their URLs, which is an illegal character for a URL
|
// amap.com uses | in their URLs, which is an illegal character for a URL
|
||||||
|
|
BIN
OsmAnd/res/drawable-hdpi/widget_monitoring_rec_inactive_day.png
Normal file → Executable file
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
OsmAnd/res/drawable-hdpi/widget_monitoring_rec_inactive_night.png
Normal file → Executable file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
BIN
OsmAnd/res/drawable-mdpi/widget_monitoring_rec_inactive_day.png
Normal file → Executable file
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
OsmAnd/res/drawable-mdpi/widget_monitoring_rec_inactive_night.png
Normal file → Executable file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
OsmAnd/res/drawable-xhdpi/widget_monitoring_rec_inactive_day.png
Normal file → Executable file
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
OsmAnd/res/drawable-xhdpi/widget_monitoring_rec_inactive_night.png
Normal file → Executable file
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
BIN
OsmAnd/res/drawable-xxhdpi/widget_monitoring_rec_inactive_day.png
Normal file → Executable file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
BIN
OsmAnd/res/drawable-xxhdpi/widget_monitoring_rec_inactive_night.png
Normal file → Executable file
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4 KiB |
|
@ -51,6 +51,13 @@ public class FavoritesListFragment extends OsmAndListFragment implements SearchA
|
||||||
public void onAttach(Activity activity) {
|
public void onAttach(Activity activity) {
|
||||||
super.onAttach(activity);
|
super.onAttach(activity);
|
||||||
Intent intent = activity.getIntent();
|
Intent intent = activity.getIntent();
|
||||||
|
settings = getApplication().getSettings();
|
||||||
|
OsmandApplication app = getApplication();
|
||||||
|
favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints(),
|
||||||
|
!selectFavoriteMode);
|
||||||
|
setListAdapter(favouritesAdapter);
|
||||||
|
setHasOptionsMenu(true);
|
||||||
|
|
||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
selectFavoriteMode = intent.hasExtra(SELECT_FAVORITE_POINT_INTENT_KEY);
|
selectFavoriteMode = intent.hasExtra(SELECT_FAVORITE_POINT_INTENT_KEY);
|
||||||
if (intent.hasExtra(SearchActivity.SEARCH_LAT) && intent.hasExtra(SearchActivity.SEARCH_LON)) {
|
if (intent.hasExtra(SearchActivity.SEARCH_LAT) && intent.hasExtra(SearchActivity.SEARCH_LON)) {
|
||||||
|
@ -61,12 +68,6 @@ public class FavoritesListFragment extends OsmAndListFragment implements SearchA
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
settings = ((OsmandApplication) getApplication()).getSettings();
|
|
||||||
OsmandApplication app = (OsmandApplication) getApplication();
|
|
||||||
favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints(),
|
|
||||||
!selectFavoriteMode);
|
|
||||||
setListAdapter(favouritesAdapter);
|
|
||||||
setHasOptionsMenu(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private OsmandApplication getApplication() {
|
private OsmandApplication getApplication() {
|
||||||
|
|