Skip to content

Commit

Permalink
fix test format
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed May 27, 2024
1 parent ea72a3f commit 9ab7b0d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ public void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.main);
WebView webView = (WebView)findViewById(R.id.webView);
String badUrl = getIntent().getStringExtra("URL");
// ruleid:webview_allow_file_from_url
boolean x = true;
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccessFromFileURLs(x);
// ruleid:webview_allow_file_from_url
webSettings.setAllowFileAccessFromFileURLs(true);
webView.setWebChromeClient(new WebChromeClient());
webView.loadUrl(badUrl);
}
Expand Down

0 comments on commit 9ab7b0d

Please sign in to comment.