[android] Added device id header to catalog webview

This commit is contained in:
Александр Зацепин 2019-07-09 14:37:03 +03:00 committed by yoksnod
parent 630a125c26
commit 2d42c0d448

View file

@ -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();
}