1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-11 14:37:51 +01:00

return from autofill events when device is asleep

This commit is contained in:
Kyle Spearrin 2017-08-15 12:28:48 -04:00
parent 40cfb9876d
commit 158bf873bd

View File

@ -69,6 +69,12 @@ namespace Bit.Android
public override void OnAccessibilityEvent(AccessibilityEvent e) public override void OnAccessibilityEvent(AccessibilityEvent e)
{ {
var powerManager = (PowerManager)GetSystemService(PowerService);
if(!powerManager.IsInteractive)
{
return;
}
try try
{ {
var root = RootInActiveWindow; var root = RootInActiveWindow;