diff options
author | Dmitry Donskoy <donskdmitry@mail.ru> | 2018-08-08 16:37:12 +0300 |
---|---|---|
committer | Aleksey Belousov <beloal@users.noreply.github.com> | 2018-08-10 20:16:14 +0300 |
commit | 5f68a99de97f88024b6593bcb1c0f13e27321ddd (patch) | |
tree | 211f25f9f5ddb8b958a8e5e6c5565c773c9a0fd1 /android/src/com/mapswithme | |
parent | a65763f6780c776209619960e62605702dbdd420 (diff) |
[android] Added userAgent for webview
Diffstat (limited to 'android/src/com/mapswithme')
-rw-r--r-- | android/src/com/mapswithme/maps/bookmarks/BookmarksCatalogFragment.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/bookmarks/BookmarksCatalogFragment.java b/android/src/com/mapswithme/maps/bookmarks/BookmarksCatalogFragment.java index d9e2553043..4d45793337 100644 --- a/android/src/com/mapswithme/maps/bookmarks/BookmarksCatalogFragment.java +++ b/android/src/com/mapswithme/maps/bookmarks/BookmarksCatalogFragment.java @@ -18,6 +18,7 @@ import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Toast; +import com.mapswithme.maps.Framework; import com.mapswithme.maps.R; import com.mapswithme.maps.auth.BaseWebViewMwmFragment; import com.mapswithme.maps.bookmarks.data.BookmarkManager; @@ -118,6 +119,7 @@ public class BookmarksCatalogFragment extends BaseWebViewMwmFragment final WebSettings webSettings = webView.getSettings(); webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); webSettings.setJavaScriptEnabled(true); + webSettings.setUserAgentString(Framework.nativeGetUserAgent()); } @NonNull |