Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ap...@google.com <ap...@google.com> #2
Trying to reproduce this on my 4.2.2 (v17) Nexus 4. Added this drawable:
<transition xmlns:android="http://schemas.android.com/apk/res/android " >
<item android:drawable="@drawable/test_drawable_blue"/>
<item android:drawable="@drawable/test_drawable_green"/>
</transition>
where blue/green drawables look like this:
<shape
xmlns:android="http://schemas.android.com/apk/res/android "
android:shape="rectangle">
<size
android:width="@dimen/drawable_large_size"
android:height="@dimen/drawable_small_size" />
<solid
android:color="@color/test_blue" />
</shape>
Then added this test:
@Test
public void testMutateTransitionDrawable() {
Drawable drawable = ResourcesCompat.getDrawable(mResources,
R.drawable.test_transition_drawable, null);
assertTrue(drawable instanceof TransitionDrawable);
Drawable mutated = drawable.mutate();
assertTrue(drawable instanceof TransitionDrawable);
assertTrue(mutated instanceof TransitionDrawable);
}
It passes on the device. Going to also try on other earlier devices a bit later in the day once they are charged.
<transition xmlns:android="
<item android:drawable="@drawable/test_drawable_blue"/>
<item android:drawable="@drawable/test_drawable_green"/>
</transition>
where blue/green drawables look like this:
<shape
xmlns:android="
android:shape="rectangle">
<size
android:width="@dimen/drawable_large_size"
android:height="@dimen/drawable_small_size" />
<solid
android:color="@color/test_blue" />
</shape>
Then added this test:
@Test
public void testMutateTransitionDrawable() {
Drawable drawable = ResourcesCompat.getDrawable(mResources,
R.drawable.test_transition_drawable, null);
assertTrue(drawable instanceof TransitionDrawable);
Drawable mutated = drawable.mutate();
assertTrue(drawable instanceof TransitionDrawable);
assertTrue(mutated instanceof TransitionDrawable);
}
It passes on the device. Going to also try on other earlier devices a bit later in the day once they are charged.
Description
The following lint check is baseline suppressed in your project. Please remove all instances of this suppression from
core/core/lint-baseline.xml
and address the associated issues before your next stable release.8 instance(s) of
ClassVerificationFailure
This call references a method added in API level 24; however, the containing class androidx.core.text.HtmlCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/HtmlCompat.java
at line 148:This call references a method added in API level 24; however, the containing class androidx.core.text.HtmlCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/HtmlCompat.java
at line 163:This call references a method added in API level 24; however, the containing class androidx.core.text.HtmlCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/HtmlCompat.java
at line 176:This call references a method added in API level 24; however, the containing class androidx.core.text.ICUCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/ICUCompat.java
at line 90:This call references a method added in API level 24; however, the containing class androidx.core.text.ICUCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/ICUCompat.java
at line 90:This call references a method added in API level 24; however, the containing class androidx.core.text.ICUCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/ICUCompat.java
at line 91:This call references a method added in API level 21; however, the containing class androidx.core.text.ICUCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/ICUCompat.java
at line 95:This call references a method added in API level 21; however, the containing class androidx.core.text.ICUCompat is reachable from earlier API levels and will fail run-time class verification.
Found in
src/main/java/androidx/core/text/ICUCompat.java
at line 101: