Skip to content

Commit

Permalink
#143: hotfix to reallow openstreetmap online map download
Browse files Browse the repository at this point in the history
  • Loading branch information
eve committed Aug 1, 2019
1 parent e81f98b commit 4ecd357
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ android {
// 0.7.1.180830 (39) Bugfix for 38; translation uk
// 0.7.2.181027 (40) Bugfixes: image orientation, media scanner
// 0.7.3.190424 (41) mapsforge-v5, filter date-last-modified, Fix getContent, exif-TAG_DATETIME, Translation ja, nl, ru, pt-br, uk
// 0.7.4.190801 (42) hotfix to reallow openstreetmap online map download

versionCode = 41
versionName = '0.7.3.190424'
versionCode = 42
versionName = '0.7.4.190801'

// all supported locales
// resConfigs "ar","de","es","fr","hi","in","it","ja","nl","pl","ro","ru","tr","uk","zz","pt-rBR","zh-rCN","zh-rTW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2017 by k3b.
* Copyright (c) 2015-2019 by k3b.
*
* This file is part of AndroFotoFinder / #APhotoManager.
*
Expand All @@ -26,6 +26,7 @@
import android.widget.Toast;

import org.osmdroid.api.IMapView;
import org.osmdroid.config.Configuration;

import java.io.File;
import java.util.ArrayList;
Expand Down Expand Up @@ -134,6 +135,8 @@ private File getOutpuFile() {
//https://github.com/osmdroid/osmdroid/issues/366
//super important. Many tile servers, including open street maps, will BAN applications by user
//??? OpenStreetMapTileProviderConstants.setUserAgentValue(getAppId() + " https://github.com/k3b/APhotoManager"); // BuildConfig.APPLICATION_ID);
// https://github.com/k3b/APhotoManager/issues/143
Configuration.getInstance().setUserAgentValue(getAppId() + " https://github.com/k3b/APhotoManager"); // BuildConfig.APPLICATION_ID);

// #60: configure some of the mapsforge settings first
MapsForgeSupport.createInstance(this);
Expand Down

0 comments on commit 4ecd357

Please sign in to comment.