fix(widgets): keep android:tint in picker previews, suppress UseAppTint
The previews are inflated as RemoteViews by the launcher, where AppCompat's app:tint never applies, so lint's suggested fix would drop the tint.
This commit is contained in:
1 parent
bad996d946
commit
acd99964ae
4 files changed
+16
No files matched your search
@@ -2,7 +2,11 @@
|
||||
<!-- The widget picker's preview of the quick-timer widget (`previewLayout`,
|
||||
API 31+): a static stand-in for `ui/widget/QuickTimerWidgetContent.kt`
|
||||
at rest — the Scallop with a play glyph over its default 05:00. -->
|
||||
<!-- android:tint, not app:tint: the launcher inflates this as RemoteViews,
|
||||
where AppCompat attributes never apply. -->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:ignore="UseAppTint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
||||
Reference in new issue
Block a user