313 lines
11 KiB
XML
313 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<issues format="6" by="lint 7.4.0" type="baseline" client="gradle" dependencies="false" name="AGP (7.4.0)" variant="all" version="7.4.0">
|
|
|
|
<issue
|
|
id="CanvasSize"
|
|
message="Calling `Canvas.getWidth()` is usually wrong; you should be calling `getBounds().getWidth()` instead"
|
|
errorLine1=" final float width = canvas.getWidth();"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/PlatLogoActivity.java"
|
|
line="112"
|
|
column="33"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="CanvasSize"
|
|
message="Calling `Canvas.getHeight()` is usually wrong; you should be calling `getBounds().getHeight()` instead"
|
|
errorLine1=" final float height = canvas.getHeight();"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/PlatLogoActivity.java"
|
|
line="113"
|
|
column="34"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="CanvasSize"
|
|
message="Calling `Canvas.getHeight()` is usually wrong; you should be calling `getBounds().getHeight()` instead"
|
|
errorLine1=" float w = Math.max(canvas.getWidth(), canvas.getHeight()) * 1.414f;"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/PlatLogoActivity.java"
|
|
line="130"
|
|
column="51"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="CanvasSize"
|
|
message="Calling `Canvas.getWidth()` is usually wrong; you should be calling `getBounds().getWidth()` instead"
|
|
errorLine1=" float w = Math.max(canvas.getWidth(), canvas.getHeight()) * 1.414f;"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/PlatLogoActivity.java"
|
|
line="130"
|
|
column="32"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="InlinedApi"
|
|
message="Field requires API level 26 (current min is 21): `android.view.View#SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR`"
|
|
errorLine1=" decorSUIV & ~View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/paint/PaintActivity.java"
|
|
line="303"
|
|
column="42"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="InlinedApi"
|
|
message="Field requires API level 26 (current min is 21): `android.view.View#SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR`"
|
|
errorLine1=" decorSUIV | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/paint/PaintActivity.java"
|
|
line="306"
|
|
column="41"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="`android:windowLayoutInDisplayCutoutMode` requires API level 27 (current min is 21)"
|
|
errorLine1=" <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/values-night/styles.xml"
|
|
line="18"
|
|
column="15"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="`android:windowLayoutInDisplayCutoutMode` requires API level 27 (current min is 21)"
|
|
errorLine1=" <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/values/styles.xml"
|
|
line="19"
|
|
column="15"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="`android:windowLightNavigationBar` requires API level 27 (current min is 21)"
|
|
errorLine1=" <item name="android:windowLightNavigationBar">false</item>"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/values-night/styles.xml"
|
|
line="19"
|
|
column="15"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="NewApi"
|
|
message="`android:windowLightNavigationBar` requires API level 27 (current min is 21)"
|
|
errorLine1=" <item name="android:windowLightNavigationBar">true</item>"
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/values/styles.xml"
|
|
line="20"
|
|
column="15"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="UseAppTint"
|
|
message="Must use `app:tint` instead of `android:tint`"
|
|
errorLine1=" android:tint="@color/p_toolbar_icon_color""
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="47"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="UseAppTint"
|
|
message="Must use `app:tint` instead of `android:tint`"
|
|
errorLine1=" android:tint="@color/p_toolbar_icon_color""
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="56"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="UseAppTint"
|
|
message="Must use `app:tint` instead of `android:tint`"
|
|
errorLine1=" android:tint="@color/p_toolbar_icon_color""
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="66"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="UseAppTint"
|
|
message="Must use `app:tint` instead of `android:tint`"
|
|
errorLine1=" android:tint="@color/p_toolbar_icon_color""
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="91"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="UseAppTint"
|
|
message="Must use `app:tint` instead of `android:tint`"
|
|
errorLine1=" android:tint="@color/p_toolbar_icon_color""
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="100"
|
|
column="13"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="Overdraw"
|
|
message="Possible overdraw: Root element paints background `#666` with a theme that also paints a background (inferred theme is `@style/PAppTheme`)"
|
|
errorLine1=" android:background="#666""
|
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_activity_paint.xml"
|
|
line="22"
|
|
column="5"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ClickableViewAccessibility"
|
|
message="`onTouch` should call `View#performClick` when a click is detected"
|
|
errorLine1=" public boolean onTouch(View view, MotionEvent event) {"
|
|
errorLine2=" ~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/paint/PaintActivity.java"
|
|
line="150"
|
|
column="36"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ClickableViewAccessibility"
|
|
message="Custom view `Painting` overrides `onTouchEvent` but not `performClick`"
|
|
errorLine1=" override fun onTouchEvent(event: MotionEvent?): Boolean {"
|
|
errorLine2=" ~~~~~~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/paint/Painting.kt"
|
|
line="230"
|
|
column="18"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ClickableViewAccessibility"
|
|
message="Custom view ``FrameLayout`` has `setOnTouchListener` called on it but does not override `performClick`"
|
|
errorLine1=" layout.setOnTouchListener(new View.OnTouchListener() {"
|
|
errorLine2=" ^">
|
|
<location
|
|
file="src/com/android_p/egg/PlatLogoActivity.java"
|
|
line="189"
|
|
column="9"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ClickableViewAccessibility"
|
|
message="`onTouch` should call `View#performClick` when a click is detected"
|
|
errorLine1=" public boolean onTouch(View v, MotionEvent event) {"
|
|
errorLine2=" ~~~~~~~">
|
|
<location
|
|
file="src/com/android_p/egg/PlatLogoActivity.java"
|
|
line="200"
|
|
column="28"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ContentDescription"
|
|
message="Missing `contentDescription` attribute on image"
|
|
errorLine1=" <ImageButton"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="42"
|
|
column="10"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ContentDescription"
|
|
message="Missing `contentDescription` attribute on image"
|
|
errorLine1=" <ImageButton"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="51"
|
|
column="10"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ContentDescription"
|
|
message="Missing `contentDescription` attribute on image"
|
|
errorLine1=" <ImageButton"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="60"
|
|
column="10"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ContentDescription"
|
|
message="Missing `contentDescription` attribute on image"
|
|
errorLine1=" <ImageButton"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="85"
|
|
column="10"/>
|
|
</issue>
|
|
|
|
<issue
|
|
id="ContentDescription"
|
|
message="Missing `contentDescription` attribute on image"
|
|
errorLine1=" <ImageButton"
|
|
errorLine2=" ~~~~~~~~~~~">
|
|
<location
|
|
file="res/layout/p_toolbar.xml"
|
|
line="94"
|
|
column="10"/>
|
|
</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="res/layout/p_brushes.xml"
|
|
line="21"
|
|
column="22"/>
|
|
</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="res/layout/p_colors.xml"
|
|
line="21"
|
|
column="22"/>
|
|
</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="res/layout/p_toolbar.xml"
|
|
line="23"
|
|
column="22"/>
|
|
</issue>
|
|
|
|
</issues>
|