Miha-x64 / Mikes_IDEA_extensions

IntelliJ IDEA: missing parts.
Apache License 2.0
34 stars 7 forks source link

False positive "Useless resource element" ignoring fillAlpha #41

Closed PhilipDukhov closed 1 year ago

PhilipDukhov commented 1 year ago

False positive "Useless resource element" ignoring fillAlpha

Sample code to reproduce:

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="56dp"
    android:height="56dp"
    android:viewportWidth="56"
    android:viewportHeight="56">
    <path
        android:pathData="h56v56h-56v-56"
        android:fillColor="#ffffff"
        android:fillAlpha="0.16"/>
    <path
        android:pathData="h56v56h-56v-56"
        android:fillColor="#ffffff"
        android:fillAlpha="0.16"/>
</vector>

Second path is marked as "invisible" and suggested to be removed. But it's visible because of first path fillAlpha parameter, which seems to be ignored during this inspection.

Screenshot 2022-12-06 at 10 27 25
Miha-x64 commented 1 year ago

Thank you, nice catch!