Fixed
Status Update
Comments
al...@google.com <al...@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.
al...@google.com <al...@google.com> #3
Also not reproducible on Galaxy Nexus running 4.0.1 (v14), 4.0.4 (v15) and 4.2.2 (v17)
ch...@google.com <ch...@google.com>
di...@google.com <di...@google.com>
ap...@google.com <ap...@google.com> #4
pr...@google.com <pr...@google.com> #5
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.window:window:1.2.0-beta04
androidx.window:window-core:1.2.0-beta04
androidx.window:window-java:1.2.0-beta04
androidx.window:window-rxjava2:1.2.0-beta04
androidx.window:window-rxjava3:1.2.0-beta04
androidx.window:window-testing:1.2.0-beta04
pa...@gmail.com <pa...@gmail.com> #6
Think my phone ain't got to spyware on it
pr...@google.com <pr...@google.com> #7
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.window:window-testing:1.4.0-alpha01
Description
The following lint check is baseline suppressed in your project. Please remove all instances of this suppression from
window/window/lint-baseline.xml
and address the associated issues before your next stable release.5 instance(s) of
RestrictedApiAndroidX
ActivityStack.getToken can only be called from within the same library group (referenced groupId=
androidx.window.extensions
from groupId=androidx.window
)Found in
src/main/java/androidx/window/embedding/EmbeddingAdapter.kt
at line 0:ActivityStack.getToken can only be called from within the same library group (referenced groupId=
androidx.window.extensions
from groupId=androidx.window
)Found in
src/main/java/androidx/window/embedding/EmbeddingAdapter.kt
at line 0:ActivityStack.getToken can only be called from within the same library group (referenced groupId=
androidx.window.extensions
from groupId=androidx.window
)Found in
src/main/java/androidx/window/embedding/EmbeddingAdapter.kt
at line 0:ActivityStack.getToken can only be called from within the same library group (referenced groupId=
androidx.window.extensions
from groupId=androidx.window
)Found in
src/main/java/androidx/window/embedding/EmbeddingAdapter.kt
at line 0:WindowExtensions.VENDOR_API_LEVEL_2 can only be accessed from within the same library group (referenced groupId=
androidx.window.extensions
from groupId=androidx.window
)Found in
src/main/java/androidx/window/embedding/EmbeddingCompat.kt
at line 0: