| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="5" by="lint 3.6.0-beta03" client="gradle" variant="debug" version="3.6.0-beta03"> |
| |
| <issue |
| id="Assert" |
| message="Assertions are unreliable in Dalvik and unimplemented in ART. Use `BuildConfig.DEBUG` conditional checks instead." |
| errorLine1=" assert view == mWebView;" |
| errorLine2=" ~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="215" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="InflateParams" |
| message="Avoid passing `null` as the view root (needed to resolve layout parameters on the inflated layout's root element)" |
| errorLine1=" .inflate(R.layout.fragment_renderer_terminated, null);" |
| errorLine2=" ~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="104" |
| column="69"/> |
| </issue> |
| |
| <issue |
| id="InflateParams" |
| message="Avoid passing `null` as the view root (needed to resolve layout parameters on the inflated layout's root element)" |
| errorLine1=" .inflate(R.layout.fragment_renderer_unresponsive, null);" |
| errorLine2=" ~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="130" |
| column="71"/> |
| </issue> |
| |
| <issue |
| id="RestrictedApi" |
| message="WebViewFeature.MULTI_PROCESS_QUERY can only be accessed from within the same library group (groupId=androidx.webkit)" |
| errorLine1=" if (WebViewFeature.isFeatureSupported(WebViewFeature.MULTI_PROCESS_QUERY)) {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/MultiProcessEnabledActivity.java" |
| line="37" |
| column="62"/> |
| </issue> |
| |
| <issue |
| id="RestrictedApi" |
| message="WebViewCompat.isMultiProcessEnabled can only be called from within the same library group (groupId=androidx.webkit)" |
| errorLine1=" if (WebViewCompat.isMultiProcessEnabled()) {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/MultiProcessEnabledActivity.java" |
| line="38" |
| column="31"/> |
| </issue> |
| |
| <issue |
| id="SpUsage" |
| message="Should use "`sp`" instead of "`dp`" for text sizes" |
| errorLine1=" android:textSize="20dp"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/fragment_renderer_terminated.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="SpUsage" |
| message="Should use "`sp`" instead of "`dp`" for text sizes" |
| errorLine1=" android:textSize="20dp"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/fragment_renderer_unresponsive.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="StaticFieldLeak" |
| message="This `AsyncTask` class should be static or leaks might occur (anonymous com.example.androidx.webkit.AssetLoaderInternalStorageActivity.WriteFileTask)" |
| errorLine1=" new WriteFileTask(mDemoFile, DEMO_HTML_CONTENT) {" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/AssetLoaderInternalStorageActivity.java" |
| line="96" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="DisableBaselineAlignment" |
| message="Set `android:baselineAligned="false"` on this element for better performance" |
| errorLine1="<LinearLayout" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_per_web_view_enable.xml" |
| line="18" |
| column="2"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground">" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_custom_interstitial.xml" |
| line="26" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppDayNightTheme`)" |
| errorLine1=" android:background="@color/colorBackground"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_force_dark.xml" |
| line="23" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_giant_interstitial.xml" |
| line="22" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground">" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_invisible.xml" |
| line="26" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground">" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_loud_interstitial.xml" |
| line="26" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_medium_interstitial.xml" |
| line="25" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_per_web_view_enable.xml" |
| line="25" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/interstitialBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/interstitialBackground"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_popup_interstitial.xml" |
| line="23" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground">" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_small_interstitial.xml" |
| line="26" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground">" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_unattached.xml" |
| line="26" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/colorBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" |
| errorLine1=" android:background="@color/colorBackground">" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_whitelist.xml" |
| line="26" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_asset_loader.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_asset_loader_list.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_force_dark.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_force_dark.xml" |
| line="37" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_force_dark.xml" |
| line="47" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_safe_browsing.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="UnusedNamespace" |
| message="Unused namespace declaration xmlns:android; already declared on the root element" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_asset_loader.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="UnusedNamespace" |
| message="Unused namespace declaration xmlns:android; already declared on the root element" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_force_dark.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="UnusedNamespace" |
| message="Unused namespace declaration xmlns:android; already declared on the root element" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_force_dark.xml" |
| line="37" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="UnusedNamespace" |
| message="Unused namespace declaration xmlns:android; already declared on the root element" |
| errorLine1=" xmlns:android="http://schemas.android.com/apk/res/android"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_force_dark.xml" |
| line="47" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="MissingApplicationIcon" |
| message="Should explicitly set `android:icon`, there is no default" |
| errorLine1=" <application" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/AndroidManifest.xml" |
| line="25" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="ButtonStyle" |
| message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)" |
| errorLine1=" <Button" |
| errorLine2=" ~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_popup_interstitial.xml" |
| line="57" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="ButtonStyle" |
| message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)" |
| errorLine1=" <Button" |
| errorLine2=" ~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_popup_interstitial.xml" |
| line="66" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="ButtonStyle" |
| message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)" |
| errorLine1=" <Button" |
| errorLine2=" ~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_renderer_termination.xml" |
| line="77" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="ButtonStyle" |
| message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)" |
| errorLine1=" <Button" |
| errorLine2=" ~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_renderer_termination.xml" |
| line="87" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="Autofill" |
| message="Missing `autofillHints` attribute" |
| errorLine1=" <EditText" |
| errorLine2=" ~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_proxy_override.xml" |
| line="34" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="Autofill" |
| message="Missing `autofillHints` attribute" |
| errorLine1=" <EditText" |
| errorLine2=" ~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_tracing_controller.xml" |
| line="34" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" mStatus.setText("API not available");" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="75" |
| column="29"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" mStatus.setText("terminated");" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="222" |
| column="33"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" mStatus.setText("started");" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="233" |
| column="25"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" mStatus.setText("unresponsive");" |
| errorLine2=" ~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="242" |
| column="37"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" mStatus.setText("responsive");" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java" |
| line="252" |
| column="37"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Type an URL here", should use `@string` resource" |
| errorLine1=" android:hint="Type an URL here"/>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_proxy_override.xml" |
| line="43" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Renderer status:", should use `@string` resource" |
| errorLine1=" android:text="Renderer status:"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_renderer_termination.xml" |
| line="37" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Type an URL here", should use `@string` resource" |
| errorLine1=" android:hint="Type an URL here"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_tracing_controller.xml" |
| line="42" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="RtlHardcoded" |
| message="Use "`start`" instead of "`left`" to ensure correct behavior in right-to-left locales" |
| errorLine1=" android:gravity="left"" |
| errorLine2=" ~~~~"> |
| <location |
| file="src/main/res/layout/activity_renderer_termination.xml" |
| line="31" |
| column="26"/> |
| </issue> |
| |
| <issue |
| id="RtlHardcoded" |
| message="Use "`start`" instead of "`left`" to ensure correct behavior in right-to-left locales" |
| errorLine1=" android:gravity="left">" |
| errorLine2=" ~~~~"> |
| <location |
| file="src/main/res/layout/activity_renderer_termination.xml" |
| line="75" |
| column="26"/> |
| </issue> |
| |
| </issues> |