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:
@@ -2,7 +2,11 @@
|
||||
<!-- The widget picker's preview of the next-alarm widget (`previewLayout`,
|
||||
API 31+): a static stand-in for `ui/widget/NextAlarmWidgetContent.kt` —
|
||||
the Cookie alarm badge, a day, a time and a label on the surface card. -->
|
||||
<!-- android:tint, not app:tint: the launcher inflates this as RemoteViews,
|
||||
where AppCompat attributes never apply. -->
|
||||
<LinearLayout 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"
|
||||
android:background="@drawable/widget_bg_card"
|
||||
|
||||
@@ -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">
|
||||
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
Circle face, running — the shape with its readout, the circular pause
|
||||
against its lower-left edge, lap and reset in the pill at its upper
|
||||
right. Fixed at a size that fits two cells. -->
|
||||
<!-- 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">
|
||||
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<!-- The widget picker's preview of the timer widget (`previewLayout`,
|
||||
API 31+): a static stand-in for `ui/widget/TimerWidgetContent.kt`'s lone
|
||||
running timer — readout over a circular pause and a reset. -->
|
||||
<!-- android:tint, not app:tint: the launcher inflates this as RemoteViews,
|
||||
where AppCompat attributes never apply. -->
|
||||
<LinearLayout 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"
|
||||
android:background="@drawable/widget_bg_card"
|
||||
|
||||
Reference in New Issue
Block a user