1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-02 10:33:36 +00:00

[TF][MAPS] OSMDroid useragent and cache directory configuration

(cherry picked from commit 1e16956e8826f660873952e6d6e632676813916f)
This commit is contained in:
世界 2020-04-30 11:06:38 +08:00
parent d1676d641c
commit cafb43096a
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -197,6 +197,11 @@ public class ApplicationLoader extends Application {
applicationHandler = new Handler(applicationContext.getMainLooper());
AndroidUtilities.runOnUIThread(ApplicationLoader::startPushService);
// SET TFOSS USERAGENT FOR OSM SERVERS
org.osmdroid.config.Configuration.getInstance().setUserAgentValue("Telegram-FOSS(F-Droid) "+BuildConfig.VERSION_NAME);
org.osmdroid.config.Configuration.getInstance().setOsmdroidBasePath(new File(getCacheDir(),"osmdroid"));
}
public static void startPushService() {