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

location sharing: set user-agent, fix map loading

Change-Id: I2c283dc83e5c78601501d62bb7ab2c52c924d364
parent 62f2ebc2
......@@ -165,8 +165,9 @@ public class LocationSharingFragment extends Fragment {
Context ctx = requireContext();
IConfigurationProvider configuration = Configuration.getInstance();
configuration.load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
configuration.setOsmdroidBasePath(new File(ctx.getCacheDir(), "osm"));
configuration.load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
configuration.setUserAgentValue("net.jami.android");
configuration.setMapViewHardwareAccelerated(true);
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