mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
Merge pull request #2666 from nextcloud/ignoreLint-setJavaScriptEnabled
lint: ignore setJavaScriptEnabled
This commit is contained in:
commit
9385f5d2f2
4 changed files with 7 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
|||
DO NOT TOUCH; GENERATED BY DRONE
|
||||
<span class="mdl-layout-title">Lint Report: 102 warnings</span>
|
||||
<span class="mdl-layout-title">Lint Report: 99 warnings</span>
|
||||
|
|
|
@ -42,6 +42,7 @@ package com.owncloud.android.authentication;
|
|||
|
||||
import android.accounts.Account;
|
||||
import android.accounts.AccountManager;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Dialog;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
|
@ -355,6 +356,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
Build.MANUFACTURER.substring(1).toLowerCase(Locale.getDefault()) + " " + Build.MODEL;
|
||||
}
|
||||
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
private void initWebViewLogin(String baseURL) {
|
||||
mLoginWebView.setVisibility(View.GONE);
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
package com.owncloud.android.ui.activity;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.widget.DrawerLayout;
|
||||
|
@ -42,7 +43,6 @@ import java.io.InputStream;
|
|||
/**
|
||||
* This activity shows an URL as a web view
|
||||
*/
|
||||
|
||||
public class ExternalSiteWebView extends FileActivity {
|
||||
public static final String EXTRA_TITLE = "TITLE";
|
||||
public static final String EXTRA_URL = "URL";
|
||||
|
@ -55,6 +55,7 @@ public class ExternalSiteWebView extends FileActivity {
|
|||
private int menuItemId;
|
||||
private WebView webview;
|
||||
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
Log_OC.v(TAG, "onCreate() start");
|
||||
|
|
|
@ -24,6 +24,7 @@ package com.owncloud.android.ui.activity;
|
|||
|
||||
import android.accounts.Account;
|
||||
import android.accounts.AccountManager;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
|
@ -265,6 +266,7 @@ public class WhatsNewActivity extends FragmentActivity implements ViewPager.OnPa
|
|||
mWebUrl = getArguments() != null ? getArguments().getString("url") : null;
|
||||
}
|
||||
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
@Nullable
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
|
||||
|
|
Loading…
Reference in a new issue