Commit 35443480 authored by Adrien Béraud's avatar Adrien Béraud

location sharing: fix setting map configuration

Change-Id: I2562f5e80b82b624b8f6b2e157e4d64309be0dee
parent b46fd325
......@@ -164,12 +164,13 @@ public class LocationSharingFragment extends Fragment {
}
Context ctx = requireContext();
File osmPath = new File(ctx.getCacheDir(), "osm");
IConfigurationProvider configuration = Configuration.getInstance();
configuration.setOsmdroidBasePath(new File(ctx.getCacheDir(), "osm"));
configuration.load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
configuration.setOsmdroidBasePath(osmPath);
configuration.setOsmdroidTileCache(new File(osmPath, "tiles"));
configuration.setUserAgentValue("net.jami.android");
configuration.setMapViewHardwareAccelerated(true);
configuration.setMapViewRecyclerFriendly(false);
bubbleSize = ctx.getResources().getDimensionPixelSize(R.dimen.location_sharing_avatar_size);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment