Skip to content

Commit

Permalink
Custom User Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Aronne Brivio committed Jan 10, 2017
1 parent 9177523 commit e608ea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/it/langolonerd/app/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void onCreate(Bundle savedInstanceState) {
// set webview params
webView = (WebView) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setUserAgentString("WEBAPP");
webView.setHorizontalScrollBarEnabled(false);
webView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);

Expand Down

0 comments on commit e608ea0

Please sign in to comment.