Bug 51180 - Xamarin.Android.Support.v4 App.ActivityOptionsCompat.ToBundle() always returns null
Summary: Xamarin.Android.Support.v4 App.ActivityOptionsCompat.ToBundle() always return...
Status: ASSIGNED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: N/A
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jon Dick
URL:
Depends on:
Blocks:
 
Reported: 2017-01-03 02:46 UTC by Sven-Michael Stübe
Modified: 2017-03-29 15:24 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Demo of the bug (58.09 KB, application/x-zip-compressed)
2017-01-03 02:46 UTC, Sven-Michael Stübe
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 51180 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
ASSIGNED

Description Sven-Michael Stübe 2017-01-03 02:46:01 UTC
Created attachment 19055 [details]
Demo of the bug

#40527 is back with the version Xamarin.Android.Support.v4 24.2.1

* Actual *

using AppCompat:

var options = ActivityOptionsCompat.MakeSceneTransitionAnimation(this, imageView, "iconTransition");
var optionsBundle = options.ToBundle();

optionsBundle is null.

using no AppCompat:

var options = ActivityOptions.MakeSceneTransitionAnimation(this, imageView, "iconTransition");
var optionsBundle = options.ToBundle();

optionsBundle is not null.

* Expected *

optionsBundle should not be null in both cases.

* Reproduce * 

- download and unzip sample
- breakpoint at MainActivity.cs#45
- build & run
- inspect optionsBundle variable

If you uncomment the non app compat line and remove the app compat line and run it, you will see a nice transition of the icon.


The sample is created by using the Blank app compat template in Visual Studio. I just updated the App Compat libraries to the latest version and added the demo code.


* Version Info *

Test Device: Nexus 5x Android 7.1.1

Xamarin: 4.2.2.6
Xamarin.Android: 7.0.2.42
Visual Studio 2015 Update 3
Comment 1 Kevin Ford 2017-02-09 06:04:24 UTC
I can confirm this problem exists in version 25.1.0 of the nuget package as well.
Comment 2 Jeremy Kolb 2017-03-29 15:24:25 UTC
This is still an issue.