mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
[TF][MAPS] OSMDroid useragent and cache directory configuration
(cherry picked from commit 1e16956e8826f660873952e6d6e632676813916f)
This commit is contained in:
parent
d1676d641c
commit
cafb43096a
|
@ -197,6 +197,11 @@ public class ApplicationLoader extends Application {
|
||||||
applicationHandler = new Handler(applicationContext.getMainLooper());
|
applicationHandler = new Handler(applicationContext.getMainLooper());
|
||||||
|
|
||||||
AndroidUtilities.runOnUIThread(ApplicationLoader::startPushService);
|
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() {
|
public static void startPushService() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user