lint: ignore setJavaScriptEnabled

This commit is contained in:
AndyScherzinger 2018-06-01 12:28:44 +02:00
parent 682c177866
commit eb7e5f735d
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 6 additions and 1 deletions

View file

@ -42,6 +42,7 @@ package com.owncloud.android.authentication;
import android.accounts.Account; import android.accounts.Account;
import android.accounts.AccountManager; import android.accounts.AccountManager;
import android.annotation.SuppressLint;
import android.app.Dialog; import android.app.Dialog;
import android.content.ComponentName; import android.content.ComponentName;
import android.content.Context; import android.content.Context;
@ -355,6 +356,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
Build.MANUFACTURER.substring(1).toLowerCase(Locale.getDefault()) + " " + Build.MODEL; Build.MANUFACTURER.substring(1).toLowerCase(Locale.getDefault()) + " " + Build.MODEL;
} }
@SuppressLint("SetJavaScriptEnabled")
private void initWebViewLogin(String baseURL) { private void initWebViewLogin(String baseURL) {
mLoginWebView.setVisibility(View.GONE); mLoginWebView.setVisibility(View.GONE);

View file

@ -21,6 +21,7 @@
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.annotation.SuppressLint;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.DrawerLayout;
@ -42,7 +43,6 @@ import java.io.InputStream;
/** /**
* This activity shows an URL as a web view * This activity shows an URL as a web view
*/ */
public class ExternalSiteWebView extends FileActivity { public class ExternalSiteWebView extends FileActivity {
public static final String EXTRA_TITLE = "TITLE"; public static final String EXTRA_TITLE = "TITLE";
public static final String EXTRA_URL = "URL"; public static final String EXTRA_URL = "URL";
@ -55,6 +55,7 @@ public class ExternalSiteWebView extends FileActivity {
private int menuItemId; private int menuItemId;
private WebView webview; private WebView webview;
@SuppressLint("SetJavaScriptEnabled")
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
Log_OC.v(TAG, "onCreate() start"); Log_OC.v(TAG, "onCreate() start");

View file

@ -24,6 +24,7 @@ package com.owncloud.android.ui.activity;
import android.accounts.Account; import android.accounts.Account;
import android.accounts.AccountManager; import android.accounts.AccountManager;
import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
@ -265,6 +266,7 @@ public class WhatsNewActivity extends FragmentActivity implements ViewPager.OnPa
mWebUrl = getArguments() != null ? getArguments().getString("url") : null; mWebUrl = getArguments() != null ? getArguments().getString("url") : null;
} }
@SuppressLint("SetJavaScriptEnabled")
@Nullable @Nullable
@Override @Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,