1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 18:23:51 +00:00

PS-70 Added circular progress to the OTP count down

This commit is contained in:
André Bispo
2022-06-13 12:57:07 +01:00
parent 77c8156515
commit a3218aed26
10 changed files with 190 additions and 140 deletions

View File

@@ -4,6 +4,7 @@ using System.Threading;
using System.Threading.Tasks;
using Bit.Core.Abstractions;
using Bit.Core.Utilities;
using Xamarin.Essentials;
using Xamarin.Forms;
namespace Bit.App.Pages
@@ -89,6 +90,7 @@ namespace Bit.App.Pages
{
if (text.StartsWith("otpauth://totp"))
{
Vibration.Vibrate();
_callback(text);
return;
}
@@ -100,6 +102,7 @@ namespace Bit.App.Pages
{
if (part.StartsWith("secret="))
{
Vibration.Vibrate();
_callback(part.Substring(7)?.ToUpperInvariant());
return;
}