Skip to content
Snippets Groups Projects
Commit a9285f6b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

location sharing: set user-agent, fix map loading

Change-Id: I2c283dc83e5c78601501d62bb7ab2c52c924d364
parent 62f2ebc2
No related branches found
No related tags found
No related merge requests found
...@@ -165,8 +165,9 @@ public class LocationSharingFragment extends Fragment { ...@@ -165,8 +165,9 @@ public class LocationSharingFragment extends Fragment {
Context ctx = requireContext(); Context ctx = requireContext();
IConfigurationProvider configuration = Configuration.getInstance(); IConfigurationProvider configuration = Configuration.getInstance();
configuration.load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
configuration.setOsmdroidBasePath(new File(ctx.getCacheDir(), "osm")); configuration.setOsmdroidBasePath(new File(ctx.getCacheDir(), "osm"));
configuration.load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
configuration.setUserAgentValue("net.jami.android");
configuration.setMapViewHardwareAccelerated(true); configuration.setMapViewHardwareAccelerated(true);
bubbleSize = ctx.getResources().getDimensionPixelSize(R.dimen.location_sharing_avatar_size); bubbleSize = ctx.getResources().getDimensionPixelSize(R.dimen.location_sharing_avatar_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment