From 7cf34b845ef1351490f50c463880614924daeb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Bispo?= Date: Tue, 12 Jul 2022 23:00:31 +0100 Subject: [PATCH] [SSG-416] Mobile PR Fixes --- .../AuthenticatorViewCell.xaml | 82 +++++------ .../AuthenticatorViewCell.xaml.cs | 7 - src/App/Controls/CircularProgressbarView.cs | 139 ++++++++++++++++++ src/App/Controls/CircularProgressbarView.xaml | 10 -- .../Controls/CircularProgressbarView.xaml.cs | 110 -------------- src/App/Pages/Vault/AddEditPageViewModel.cs | 22 ++- .../Vault/GroupingsPage/GroupingsPage.xaml | 11 +- .../Vault/GroupingsPage/GroupingsPage.xaml.cs | 9 +- .../GroupingsPageTOTPListItem.cs | 45 +----- .../GroupingsPage/GroupingsPageViewModel.cs | 74 ++++++---- src/App/Pages/Vault/ScanPage.xaml | 13 +- src/App/Pages/Vault/ScanPage.xaml.cs | 81 ++++++---- src/App/Pages/Vault/ScanPageViewModel.cs | 18 +-- src/App/Pages/Vault/ViewPage.xaml | 8 +- src/App/Pages/Vault/ViewPage.xaml.cs | 4 +- src/App/Pages/Vault/ViewPageViewModel.cs | 83 +++-------- src/App/Resources/AppResources.Designer.cs | 42 +++--- src/App/Resources/AppResources.resx | 23 +-- src/App/Styles/Base.xaml | 13 ++ src/App/Utilities/TimerTask.cs | 56 +++++++ src/App/Utilities/TotpHelper.cs | 61 ++++++++ 21 files changed, 507 insertions(+), 404 deletions(-) create mode 100644 src/App/Controls/CircularProgressbarView.cs delete mode 100644 src/App/Controls/CircularProgressbarView.xaml delete mode 100644 src/App/Controls/CircularProgressbarView.xaml.cs create mode 100644 src/App/Utilities/TimerTask.cs create mode 100644 src/App/Utilities/TotpHelper.cs diff --git a/src/App/Controls/AuthenticatorViewCell/AuthenticatorViewCell.xaml b/src/App/Controls/AuthenticatorViewCell/AuthenticatorViewCell.xaml index a6e9ac662..cc28c2251 100644 --- a/src/App/Controls/AuthenticatorViewCell/AuthenticatorViewCell.xaml +++ b/src/App/Controls/AuthenticatorViewCell/AuthenticatorViewCell.xaml @@ -9,30 +9,23 @@ xmlns:core="clr-namespace:Bit.Core;assembly=BitwardenCore" StyleClass="list-row, list-row-platform" HorizontalOptions="FillAndExpand" - x:DataType="pages:GroupingsPageTOTPListItem"> + x:DataType="pages:GroupingsPageTOTPListItem" + ColumnDefinitions="40,*,40,Auto,40" + RowSpacing="0" + Padding="0,10,0,0" + RowDefinitions="Auto,Auto"> - - - - - - - - - - - - @@ -46,47 +39,35 @@ VerticalOptions="Center" WidthRequest="22" HeightRequest="22" + Grid.RowSpan="2" IsVisible="{Binding ShowIconImage}" Source="{Binding IconImageSource, Mode=OneTime}" AutomationProperties.IsInAccessibleTree="False" /> - - - - - + Grid.Row="0" + VerticalTextAlignment="End" + VerticalOptions="End" + StyleClass="list-title, list-title-platform" + Text="{Binding Cipher.Name}" /> - +