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)
bu...@google.com <bu...@google.com> #4
pr...@gmail.com <pr...@gmail.com> #6
bu...@google.com <bu...@google.com>
al...@google.com <al...@google.com>
ap...@google.com <ap...@google.com> #7
Project: platform/frameworks/support
Branch: androidx-main
Author: Alan Viverette <
Link:
Inline ApiXXImpl methods and unwrap obsolete SDK_INT checks
Expand for full commit details
Inline ApiXXImpl methods and unwrap obsolete SDK_INT checks
Bug: 379669743
Test: ActivityOptionsCompatTest
Change-Id: I1e3222908604c1f7a835489ca98a802af0912390
Files:
- M
core/core/src/main/java/androidx/core/app/ActivityOptionsCompat.java
Hash: b7937b0dfc7ede637b1754a4cb3d4bfe4f71270e
Date: Tue Dec 03 14:47:37 2024
ap...@google.com <ap...@google.com> #8
Project: platform/frameworks/support
Branch: androidx-main
Author: Alan Viverette <
Link:
Add setLaunchDisplayId
Expand for full commit details
Add setLaunchDisplayId
Relnote: Add setLaunchDisplayId to ActivityOptionsCompat
Test: ActivityOptionsCompatTest
Fixes: 379669743
Change-Id: I39e773972f9f91b6f970c542740a61486197a3cc
Files:
- M
core/core/api/current.txt
- M
core/core/api/restricted_current.txt
- M
core/core/src/main/java/androidx/core/app/ActivityOptionsCompat.java
- M
core/core/src/test/java/androidx/core/app/ActivityOptionsCompatTest.kt
Hash: 317ab2d2ec1439a277dbe9e2212decd86b4431a5
Date: Tue Dec 03 15:26:25 2024
pr...@gmail.com <pr...@gmail.com> #9
Thanks for fixing this. Can you please let me know what version of androidx.core library will contain this change ?
pr...@google.com <pr...@google.com> #10
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.core:core:1.16.0-alpha01
Description
Version used: 1.15
Description
The ActivityOptionsCompat is missing the setTargetDisplayId API which is set on the underlying ActivityOptions. This is needed because ActivityResultLauncher::launch accepts the compat version of "ActivityOptions" instead of a bundle which is accepted by "Context::startActivity()" API.
The android product that I work on deals with displaying content on multiple displays and is not a traditional mobile app, so we have an internal navigation framework to allow displaying content on different displays and having this API exposed natively will allow us to deprecate and remove usages of "startActivityForResult".