forked from organicmaps/organicmaps
[android] Added device id header to catalog webview
This commit is contained in:
parent
630a125c26
commit
2d42c0d448
1 changed files with 4 additions and 0 deletions
|
@ -275,6 +275,10 @@ public class BookmarksCatalogFragment extends BaseWebViewMwmFragment
|
|||
if (!TextUtils.isEmpty(productDetailsBundle))
|
||||
headers.put(HttpClient.HEADER_BUNDLE_TIERS, productDetailsBundle);
|
||||
|
||||
String deviceId = Framework.nativeGetDeviceId();
|
||||
if (!TextUtils.isEmpty(deviceId))
|
||||
headers.put(HttpClient.HEADER_DEVICE_ID, deviceId);
|
||||
|
||||
mWebView.loadUrl(getCatalogUrlOrThrow(), headers);
|
||||
UserActionsLogger.logBookmarksCatalogShownEvent();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue