Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ju...@google.com <ju...@google.com>
ew...@amazon.com <ew...@amazon.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.
ar...@google.com <ar...@google.com>
ap...@google.com <ap...@google.com> #3
Also not reproducible on Galaxy Nexus running 4.0.1 (v14), 4.0.4 (v15) and 4.2.2 (v17)
Description
Version used: 1.7.0, 1.8.0-alpha02
Devices/Android versions reproduced on: Google Pixel 4a on Android 12
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue. n/a
- A screenrecord or screenshots showing the issue (if UI related). n/a
NotificationCompat.BigPictureStyle doesn't support setting a big picture by using an icon, which was added to the platform's BigPictureStyle in API 31 (
showBigPictureWhenCollapsed and setContentDescription, the other two new additions in API 31, are supported in the latest version of androidx.core:core.
Are you planning to support bigPicture(icon) in NotificationCompat.BigPictureStyle and can you share when it is expected to become available, or won't this be feasible to support? I understand that animated images will only work on API 31, but it would be helpful to be able to use it on that API level, right now it isn't possible to use it when building with NotificationCompat at all.