[android] Fix lint warnings for intent-filters #3595

Merged
root merged 2 commits from rt-android-intent-filter-warnings into master 2022-10-15 06:16:57 +00:00

2 commits

Author SHA1 Message Date
f29266a39a Review fixes 2022-10-14 09:37:13 +03:00
1b2cbe7cef [android] Fix lint warnings for intent-filters
> Data tags should only declare unique attributes
> Consider splitting data tag into multiple tags
> with individual attributes to avoid confusion

All the `<data>` elements contained within the same `<intent-filter>`
element contribute to the same filter. So, for example, the following
filter specification,

```
<intent-filter . . . >
    <data android:scheme="something" android:host="project.example.com" />
    . . .
</intent-filter>
```

is equivalent to this one:

```
<intent-filter . . . >
    <data android:scheme="something" />
    <data android:host="project.example.com" />
    . . .
</intent-filter>
```

https://developer.android.com/guide/topics/manifest/data-element

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2022-10-14 09:36:10 +03:00