Create a valid ActivityOptions Bundle even for default animations

am: b759bd3b4a

Change-Id: Ib9b61f2bf4ac6b6001664ebbc40d115089e75326
This commit is contained in:
Ian Lake
2017-04-19 21:39:49 +00:00
committed by android-build-merger

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);