Fixed
Status Update
Comments
gy...@google.com <gy...@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.
it...@gmail.com <it...@gmail.com> #3
Also not reproducible on Galaxy Nexus running 4.0.1 (v14), 4.0.4 (v15) and 4.2.2 (v17)
gy...@google.com <gy...@google.com> #4
it...@gmail.com <it...@gmail.com> #5
Added. Yes, it resolved the issue. Thanks for helping!
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
commit b27cfef95fabcaccff48524ec87dec91bf74901b
Author: Alan Viverette <alanv@google.com>
Date: Tue Jan 12 09:52:14 2021
Update core dependency on VP for bugfix
Fixes: 177296655
Bug: 177060207
Test: n/a
Change-Id: I1f8e4205db604eabdbbfb8f7c40d915b5cd0af2f
M core/core/build.gradle
https://android-review.googlesource.com/1547256
Branch: androidx-main
commit b27cfef95fabcaccff48524ec87dec91bf74901b
Author: Alan Viverette <alanv@google.com>
Date: Tue Jan 12 09:52:14 2021
Update core dependency on VP for bugfix
Fixes: 177296655
Bug: 177060207
Test: n/a
Change-Id: I1f8e4205db604eabdbbfb8f7c40d915b5cd0af2f
M core/core/build.gradle
ap...@google.com <ap...@google.com> #7
Project: platform/frameworks/support
Branch: androidx-main
commit 26317fcfd23175637b84b45a0dcb4816f9f37e81
Author: Gyumin Sim <gyumin@google.com>
Date: Tue Jan 12 18:46:21 2021
Specify versionedparcelable version as 1.1.1 for media2
It makes media2 use versionedparcelable v1.1.1 to fix a bug where
package-private VersionedParcelable classes might be trimmed.
Bug: 177060207
Relnote: Fixed NPE from versionedparcelable
Test: ./gradlew -p media2 assembleDebug
Change-Id: I1ec281ddd52517b660374b8d57c5c6d925e38c12
M media2/common/build.gradle
https://android-review.googlesource.com/1547640
Branch: androidx-main
commit 26317fcfd23175637b84b45a0dcb4816f9f37e81
Author: Gyumin Sim <gyumin@google.com>
Date: Tue Jan 12 18:46:21 2021
Specify versionedparcelable version as 1.1.1 for media2
It makes media2 use versionedparcelable v1.1.1 to fix a bug where
package-private VersionedParcelable classes might be trimmed.
Bug: 177060207
Relnote: Fixed NPE from versionedparcelable
Test: ./gradlew -p media2 assembleDebug
Change-Id: I1ec281ddd52517b660374b8d57c5c6d925e38c12
M media2/common/build.gradle
Description
Component used: media2-session
Version used: 1.1.1
Devices/Android versions reproduced on: SHIELD TV (Android 9), Redmi K20 (Android 11), Mi 9T Pro (Android 10)
Using a ExoPlayer with a MediaSessionService. Note that no extra session package verifiers are used, only inbuilt inside ExoPlayer's media2 extension.
Crashlog: