mirror of
https://github.com/bitwarden/mobile
synced 2026-01-05 01:53:17 +00:00
[PM-5907] Fix for incorrect TOTP white text color on label when using light theme on iOS (#2982)
* PM-5907 workaround for incorrect textcolor when programmatically changing text on Entry * Update src/Core/Pages/Vault/CipherAddEditPage.xaml.cs Co-authored-by: Federico Maccaroni <fedemkr@gmail.com> --------- Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
This commit is contained in:
@@ -268,6 +268,14 @@ namespace Bit.App.Pages
|
||||
{
|
||||
await Navigation.PopModalAsync();
|
||||
await _vm.UpdateTotpKeyAsync(key);
|
||||
|
||||
#if IOS
|
||||
// HACK: To avoid a bug that incorrectly sets the TextColor when changing text
|
||||
// programatically we need to set it to null and back to the correct color
|
||||
// MAUI issue https://github.com/dotnet/maui/pull/20100
|
||||
_loginTotpEntry.TextColor = null;
|
||||
_loginTotpEntry.TextColor = ThemeManager.GetResourceColor("TextColor");
|
||||
#endif
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user