Skip to content

Commit

Permalink
[android] Add missing overloads to MaterialButton (#23517)
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos authored Jul 15, 2024
1 parent 4784931 commit ce82d75
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Core/src/Platform/Android/MauiMaterialButton.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using Android.Content;
using Android.Graphics.Drawables;
using Android.Runtime;
using Android.Util;
using Android.Views;
using AndroidX.Core.Widget;
using Google.Android.Material.Button;
Expand All @@ -25,6 +27,18 @@ public MauiMaterialButton(Context context)
{
}

protected MauiMaterialButton(nint javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
{
}

public MauiMaterialButton(Context context, IAttributeSet? attrs) : base(context, attrs)
{
}

public MauiMaterialButton(Context context, IAttributeSet? attrs, int defStyleAttr) : base(context, attrs, defStyleAttr)
{
}

public override int IconGravity
{
get => base.IconGravity;
Expand Down
3 changes: 3 additions & 0 deletions src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Microsoft.Maui.KeyboardAcceleratorModifiers.None = 0 -> Microsoft.Maui.KeyboardA
Microsoft.Maui.KeyboardAcceleratorModifiers.Shift = 1 -> Microsoft.Maui.KeyboardAcceleratorModifiers
Microsoft.Maui.KeyboardAcceleratorModifiers.Windows = 16 -> Microsoft.Maui.KeyboardAcceleratorModifiers
Microsoft.Maui.Layouts.FlexBasis.Equals(Microsoft.Maui.Layouts.FlexBasis other) -> bool
Microsoft.Maui.Platform.MauiMaterialButton.MauiMaterialButton(Android.Content.Context! context, Android.Util.IAttributeSet? attrs) -> void
Microsoft.Maui.Platform.MauiMaterialButton.MauiMaterialButton(Android.Content.Context! context, Android.Util.IAttributeSet? attrs, int defStyleAttr) -> void
Microsoft.Maui.Platform.MauiMaterialButton.MauiMaterialButton(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void
Microsoft.Maui.PlatformAppCompatTextView
Microsoft.Maui.PlatformAppCompatTextView.PlatformAppCompatTextView(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void
Microsoft.Maui.Platform.IImageSourcePartSetter
Expand Down

0 comments on commit ce82d75

Please sign in to comment.