Skip to content

Commit

Permalink
[TF][MAPS] OSMDroid useragent and cache directory configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai authored and thermatk committed Aug 16, 2020
1 parent b7478da commit 9ca00db
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -198,6 +198,11 @@ public void onActivityStarted(Activity activity) {
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() {
Expand Down

0 comments on commit 9ca00db

Please sign in to comment.