mirror of
https://github.com/bitwarden/mobile
synced 2025-12-26 05:03:39 +00:00
Android 11 inline autofill (#1145)
* Inline autofill support for Android 11 - initial commit * null check intent before getting bool extra * Updated xamarin androidx autofill * fixed broken overlay fallback * fixed filename * auto-compat-check cleanup * simplification
This commit is contained in:
@@ -525,7 +525,7 @@ namespace Bit.Droid.Services
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (activity.Intent.GetBooleanExtra("autofillFramework", false))
|
||||
if (activity.Intent?.GetBooleanExtra("autofillFramework", false) ?? false)
|
||||
{
|
||||
if (cipher == null)
|
||||
{
|
||||
@@ -596,7 +596,7 @@ namespace Bit.Droid.Services
|
||||
public void Background()
|
||||
{
|
||||
var activity = (MainActivity)CrossCurrentActivity.Current.Activity;
|
||||
if (activity.Intent.GetBooleanExtra("autofillFramework", false))
|
||||
if (activity.Intent?.GetBooleanExtra("autofillFramework", false) ?? false)
|
||||
{
|
||||
activity.SetResult(Result.Canceled);
|
||||
activity.Finish();
|
||||
|
||||
Reference in New Issue
Block a user