delay credential clear when no passwords

This commit is contained in:
Kyle Spearrin 2017-08-09 21:40:59 -04:00
parent 7cca53bcc5
commit f231565163
1 changed files with 10 additions and 1 deletions

View File

@ -219,9 +219,18 @@ namespace Bit.Android
cancelNotification = false;
}
}
AutofillActivity.LastCredentials = null;
}
else if(AutofillActivity.LastCredentials != null)
{
System.Threading.Tasks.Task.Run(async () =>
{
await System.Threading.Tasks.Task.Delay(1000);
AutofillActivity.LastCredentials = null;
});
}
AutofillActivity.LastCredentials = null;
passwordNodes.Dispose();
return cancelNotification;
}