Commit fd3cbb3f authored by Kevin Carrasco's avatar Kevin Carrasco

Temp fix for disallowed_useragent error from google oauth

parent c68d0a66
...@@ -127,6 +127,7 @@ public abstract class AbstractOAuthFragment extends AbstractWebViewFragment ...@@ -127,6 +127,7 @@ public abstract class AbstractOAuthFragment extends AbstractWebViewFragment
} }
resultOK = false; resultOK = false;
webView.getSettings().setUserAgentString("Chrome/56.0.0.0 Mobile");
webView.loadUrl(url); webView.loadUrl(url);
webView.addJavascriptInterface(new JSInterface(result -> { webView.addJavascriptInterface(new JSInterface(result -> {
// onPageFinish is called twice... Should ignore latter one. // onPageFinish is called twice... Should ignore latter one.
......
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