Bug 7747 - Android.Views.ShowAsAction should have [Flags] attribute
Summary: Android.Views.ShowAsAction should have [Flags] attribute
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.2.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Radek Doulik
URL:
Depends on:
Blocks:
 
Reported: 2012-10-09 15:36 UTC by Jeremy Kolb
Modified: 2014-04-04 06:31 UTC (History)
3 users (show)

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

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Jeremy Kolb 2012-10-09 15:36:59 UTC
Resharper is warning me that Android.Views.ShowAsAction should have the [Flags] attribute set so that we can or values together.
Comment 1 Radek Doulik 2013-06-11 09:42:19 UTC
It is fixed in master and will be available in the next alpha release.
Comment 2 Sadik Ali 2014-04-04 06:31:07 UTC
I have checked this issue with following builds

Windows 7
Xamarin Studio:4.2.3(build 60)
Xamarin.Android:4.12.2 

Build Information
Release ID: 402030060
30c4afc300c2a39ec5300851357ce02e49dd217e
Build date: 2014-03-05 16:53:54Z
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044

When I open the definition of "Android.Views.ShowAsAction" enum in "assembly browser" I observed that "Android.Views.ShowAsAction" has the flag attribute. Now, the definition of "Android.Views.ShowAsAction" enum is:

        [Flags]
	public enum ShowAsAction
	{
		Always = 2,
		CollapseActionView = 8,
		IfRoom = 1,
		Never = 0,
		WithText = 4
	}

Screencast: http://www.screencast.com/t/c5vhmUOUz

This issue is working fine. Hence, I am closing this issue.