[Mono-bugs] [Bug 642758] New: API Enhancement: Replace some magic ints with available enum value

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 29 23:58:11 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=642758

https://bugzilla.novell.com/show_bug.cgi?id=642758#c0


           Summary: API Enhancement: Replace some magic ints with
                    available enum value
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: chad.kittel at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: ---


I know there is a push to make the API rely less on magic ints, but instead
instead on enum values.  I found some situations where there is an enum value
available, but a property or method is still looking for an int.

Android.Widget.EditText.Gravity could use Android.Views.GravityFlags
Android.Widget.EditText.SetRawInputType(int) could use Android.Text.InputTypes
Android.App.Activity.GetPreferences(int) could use
Android.Content.FileCreationMode

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list