Create a valid ActivityOptions Bundle even for default animations

The ActivityOptions bundle can hold additional information beyond the
animation details (such as the usage time report, launch, display id, etc). We
need to return a non-null Bundle even if we're using the default animations to
retain that information.

Test: Added in 8209c4bf

BUG: 34235073
Change-Id: If69edadb3f7ff937f07fc618bddbd10cf46666e6
This commit is contained in:
Ian Lake
2017-04-18 10:42:50 -07:00
parent 95b193fdca
commit b759bd3b4a

View File

@@ -1211,9 +1211,6 @@ public class ActivityOptions {
* methods that take an options Bundle.
*/
public Bundle toBundle() {
if (mAnimationType == ANIM_DEFAULT) {
return null;
}
Bundle b = new Bundle();
if (mPackageName != null) {
b.putString(KEY_PACKAGE_NAME, mPackageName);