1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-11 22:03:27 +00:00

subtitles for each type

This commit is contained in:
Kyle Spearrin
2017-10-20 12:47:05 -04:00
parent 296c9dc055
commit cc0bb65096
4 changed files with 56 additions and 32 deletions

View File

@@ -140,14 +140,14 @@ namespace Bit.Android
{
var isPremium = Resolver.Resolve<ITokenService>()?.TokenPremium ?? false;
var autoCopyEnabled = !_settings.GetValueOrDefault(Constants.SettingDisableTotpCopy, false);
if(isPremium && autoCopyEnabled && _deviceActionService != null && cipher.Totp.Value != null)
if(isPremium && autoCopyEnabled && _deviceActionService != null && cipher.LoginTotp.Value != null)
{
_deviceActionService.CopyToClipboard(App.Utilities.Crypto.Totp(cipher.Totp.Value));
_deviceActionService.CopyToClipboard(App.Utilities.Crypto.Totp(cipher.LoginTotp.Value));
}
data.PutExtra("uri", cipher.Uri.Value);
data.PutExtra("username", cipher.Username);
data.PutExtra("password", cipher.Password.Value);
data.PutExtra("uri", cipher.LoginUri.Value);
data.PutExtra("username", cipher.LoginUsername);
data.PutExtra("password", cipher.LoginPassword.Value);
}
if(Parent == null)