Fix for accessibility overlay on Android 5 & 6 (#965)

* Fix for accessibility overlay on Android 5 & 6

* changed to skip check outright until API 26
This commit is contained in:
Matt Portune 2020-06-08 08:25:24 -04:00 committed by GitHub
parent 5da2f3279b
commit 183834689d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -601,7 +601,12 @@ namespace Bit.Droid.Accessibility
public static bool IsAutofillServicePromptVisible(IEnumerable<AccessibilityWindowInfo> windows)
{
return windows?.Any(w => w.Title?.ToLower().Contains("autofill") ?? false) ?? false;
// Autofill framework not available until API 26
if (Build.VERSION.SdkInt >= BuildVersionCodes.O)
{
return windows?.Any(w => w.Title?.ToLower().Contains("autofill") ?? false) ?? false;
}
return false;
}
public static int GetNodeHeight(AccessibilityNodeInfo node)