From ce41eb05787dd039e806d04d30e80d4eb8dff5aa Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Mon, 20 Nov 2023 16:09:23 -0300 Subject: [PATCH] PM-3350 Fixed account toolbar item and TitleView on SendAddOnlyPage, also removed comments on AvatarImageSource given the workaround is not needed anymore to draw the image successfully. --- src/Core/Controls/AvatarImageSource.cs | 13 +----- src/Core/Pages/Send/SendAddOnlyPage.xaml | 50 ++++++++++++++------- src/Core/Pages/Send/SendAddOnlyPage.xaml.cs | 8 ---- src/Core/Resources/Styles/Base.xaml | 30 +++++++++++++ 4 files changed, 65 insertions(+), 36 deletions(-) diff --git a/src/Core/Controls/AvatarImageSource.cs b/src/Core/Controls/AvatarImageSource.cs index 9f3ee89cb..6ffbb1167 100644 --- a/src/Core/Controls/AvatarImageSource.cs +++ b/src/Core/Controls/AvatarImageSource.cs @@ -1,12 +1,5 @@ -using System; -using System.IO; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Bit.Core.Utilities; +using Bit.Core.Utilities; using SkiaSharp; -using Microsoft.Maui.Controls; -using Microsoft.Maui; namespace Bit.App.Controls { @@ -48,11 +41,7 @@ namespace Bit.App.Controls private Task GetStreamAsync(CancellationToken userToken = new CancellationToken()) { - // TODO: [MAUI-Avatar] now methods are private protected so cannot be used here, figure out workaround - //OnLoadingStarted(); - //userToken.Register(CancellationTokenSource.Cancel); var result = Draw(); - //OnLoadingCompleted(CancellationTokenSource.IsCancellationRequested); return Task.FromResult(result); } diff --git a/src/Core/Pages/Send/SendAddOnlyPage.xaml b/src/Core/Pages/Send/SendAddOnlyPage.xaml index d4b34b05e..425912410 100644 --- a/src/Core/Pages/Send/SendAddOnlyPage.xaml +++ b/src/Core/Pages/Send/SendAddOnlyPage.xaml @@ -10,26 +10,44 @@ xmlns:effects="clr-namespace:Bit.App.Effects" x:DataType="pages:SendAddEditPageViewModel" HideSoftInputOnTapped="True" - x:Name="_page" - Title="{Binding PageTitle}"> + x:Name="_page"> - - - - - - + + + + +