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:
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user