1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-26 05:03:39 +00:00

PM-3349 MAUI - Android - Fix awful buttons background

This commit is contained in:
Federico Maccaroni
2023-09-01 18:46:07 -03:00
parent 2fe8ae0b46
commit df4672d4cb

View File

@@ -1,6 +1,4 @@
using Bit.App.Controls;
namespace Bit.App.Handlers
namespace Bit.App.Handlers
{
public partial class ButtonHandlerMappings
{
@@ -8,10 +6,8 @@ namespace Bit.App.Handlers
{
Microsoft.Maui.Handlers.ButtonHandler.Mapper.AppendToMapping("CustomButtonHandler", (handler, button) =>
{
if (button is IconButton || button is MiButton)
{
handler.PlatformView.SetBackgroundResource(0);
}
// WORKAROUND applied from https://github.com/dotnet/maui/issues/2918
handler.PlatformView.StateListAnimator = null;
});
}
}