mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
revert accessibility throttling
This commit is contained in:
parent
89f32beec5
commit
fca5447094
1 changed files with 1 additions and 19 deletions
|
@ -90,9 +90,6 @@ namespace Bit.Android
|
||||||
private HashSet<string> _launcherPackageNames = null;
|
private HashSet<string> _launcherPackageNames = null;
|
||||||
private DateTime? _lastLauncherSetBuilt = null;
|
private DateTime? _lastLauncherSetBuilt = null;
|
||||||
private TimeSpan _rebuildLauncherSpan = TimeSpan.FromHours(1);
|
private TimeSpan _rebuildLauncherSpan = TimeSpan.FromHours(1);
|
||||||
private DateTime? _lastFocusEvent = null;
|
|
||||||
private DateTime? _lastWindowEvent = null;
|
|
||||||
private TimeSpan _eventSpan = TimeSpan.FromMilliseconds(500);
|
|
||||||
|
|
||||||
public AutofillService()
|
public AutofillService()
|
||||||
{
|
{
|
||||||
|
@ -118,8 +115,6 @@ namespace Bit.Android
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//global::Android.Util.Log.Info("bw_access", e.PackageName + " fired event " + e.EventType);
|
|
||||||
|
|
||||||
var root = RootInActiveWindow;
|
var root = RootInActiveWindow;
|
||||||
if(root == null || root.PackageName != e.PackageName)
|
if(root == null || root.PackageName != e.PackageName)
|
||||||
{
|
{
|
||||||
|
@ -141,12 +136,6 @@ namespace Bit.Android
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_lastFocusEvent != null && (DateTime.Now - _lastFocusEvent.Value) < _eventSpan)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
_lastFocusEvent = DateTime.Now;
|
|
||||||
|
|
||||||
if(e.PackageName == BitwardenPackage)
|
if(e.PackageName == BitwardenPackage)
|
||||||
{
|
{
|
||||||
CancelNotification(notificationManager);
|
CancelNotification(notificationManager);
|
||||||
|
@ -164,14 +153,7 @@ namespace Bit.Android
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if(_appSettings.AutofillPasswordField && AutofillActivity.LastCredentials == null)
|
||||||
if(_lastWindowEvent != null && (DateTime.Now - _lastWindowEvent.Value) < _eventSpan)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
_lastWindowEvent = DateTime.Now;
|
|
||||||
|
|
||||||
if(_appSettings.AutofillPasswordField && AutofillActivity.LastCredentials == null)
|
|
||||||
{
|
{
|
||||||
if(string.IsNullOrWhiteSpace(_lastNotificationUri))
|
if(string.IsNullOrWhiteSpace(_lastNotificationUri))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue