blob: ac18c7e03b34d6e2d815705511d097aeada27592 [file] [log] [blame]
<?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&apos;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&apos;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 &quot;`sp`&quot; instead of &quot;`dp`&quot; for text sizes"
errorLine1=" android:textSize=&quot;20dp&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/fragment_renderer_terminated.xml"
line="27"
column="9"/>
</issue>
<issue
id="SpUsage"
message="Should use &quot;`sp`&quot; instead of &quot;`dp`&quot; for text sizes"
errorLine1=" android:textSize=&quot;20dp&quot;"
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=&quot;false&quot;` on this element for better performance"
errorLine1="&lt;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=&quot;@color/colorBackground&quot;>"
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=&quot;@color/colorBackground&quot;"
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=&quot;@color/colorBackground&quot;"
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=&quot;@color/colorBackground&quot;>"
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=&quot;@color/colorBackground&quot;>"
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=&quot;@color/colorBackground&quot;"
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=&quot;@color/colorBackground&quot;"
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=&quot;@color/interstitialBackground&quot;"
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=&quot;@color/colorBackground&quot;>"
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=&quot;@color/colorBackground&quot;>"
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=&quot;@color/colorBackground&quot;>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/activity_allowlist.xml"
line="26"
column="5"/>
</issue>
<issue
id="RedundantNamespace"
message="This namespace declaration is redundant"
errorLine1=" xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=&quot;http://schemas.android.com/apk/res/android&quot;"
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=" &lt;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=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" &lt;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=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" &lt;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=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" &lt;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=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" &lt;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=" &lt;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=" &lt;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(&quot;API not available&quot;);"
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(&quot;terminated&quot;);"
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(&quot;started&quot;);"
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(&quot;unresponsive&quot;);"
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(&quot;responsive&quot;);"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/com/example/androidx/webkit/RendererTerminationActivity.java"
line="252"
column="37"/>
</issue>
<issue
id="HardcodedText"
message="Hardcoded string &quot;Type an URL here&quot;, should use `@string` resource"
errorLine1=" android:hint=&quot;Type an URL here&quot;/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/activity_proxy_override.xml"
line="43"
column="9"/>
</issue>
<issue
id="HardcodedText"
message="Hardcoded string &quot;Renderer status:&quot;, should use `@string` resource"
errorLine1=" android:text=&quot;Renderer status:&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/activity_renderer_termination.xml"
line="37"
column="13"/>
</issue>
<issue
id="HardcodedText"
message="Hardcoded string &quot;Type an URL here&quot;, should use `@string` resource"
errorLine1=" android:hint=&quot;Type an URL here&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/activity_tracing_controller.xml"
line="42"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Use &quot;`start`&quot; instead of &quot;`left`&quot; to ensure correct behavior in right-to-left locales"
errorLine1=" android:gravity=&quot;left&quot;"
errorLine2=" ~~~~">
<location
file="src/main/res/layout/activity_renderer_termination.xml"
line="31"
column="26"/>
</issue>
<issue
id="RtlHardcoded"
message="Use &quot;`start`&quot; instead of &quot;`left`&quot; to ensure correct behavior in right-to-left locales"
errorLine1=" android:gravity=&quot;left&quot;>"
errorLine2=" ~~~~">
<location
file="src/main/res/layout/activity_renderer_termination.xml"
line="75"
column="26"/>
</issue>
</issues>