fix SelectCurrentDbActivity not correctly forwarding to PasswordActivity

This commit is contained in:
Philipp Crocoll
2019-11-05 22:40:59 +01:00
parent 5e4ea21377
commit 2362efe5fc
2 changed files with 6 additions and 3 deletions

View File

@@ -86,8 +86,10 @@ namespace keepass2android
public const String KeyKeyfile = "keyFile";
public const String KeyPassword = "password";
public const String LaunchImmediately = "launchImmediately";
private const string ShowpasswordKey = "ShowPassword";
private const string ShowpasswordKey = "ShowPassword";
private const string KeyProviderIdOtp = "KP2A-OTP";
private const string KeyProviderIdOtpRecovery = "KP2A-OTPSecret";
private const string KeyProviderIdChallenge = "KP2A-Chal";

View File

@@ -232,8 +232,9 @@ namespace keepass2android
//forward to password activity
Intent i = new Intent(this, typeof(PasswordActivity));
Util.PutIoConnectionToIntent(ioc, i);
i.PutExtra(PasswordActivity.KeyKeyfile, i.GetStringExtra(PasswordActivity.KeyKeyfile));
i.PutExtra(PasswordActivity.KeyPassword, i.GetStringExtra(PasswordActivity.KeyPassword));
i.PutExtra(PasswordActivity.KeyKeyfile, Intent.GetStringExtra(PasswordActivity.KeyKeyfile));
i.PutExtra(PasswordActivity.KeyPassword, Intent.GetStringExtra(PasswordActivity.KeyPassword));
i.PutExtra(PasswordActivity.LaunchImmediately, Intent.GetBooleanExtra(PasswordActivity.LaunchImmediately, false));
LaunchingOther = true;
StartActivityForResult(i, ReqCodeOpenNewDb);
}