1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-22 11:35:21 +01:00

autofill fixes for password focus

This commit is contained in:
Kyle Spearrin 2017-05-30 08:35:57 -04:00
parent e651a13980
commit 84a6ee8cbf

View File

@ -121,8 +121,13 @@ namespace Bit.Android
if(uri != _lastNotificationUri)
{
CancelNotification(notificationManager);
break;
}
else if(uri.StartsWith(App.Constants.AndroidAppProtocol))
{
CancelNotification(notificationManager, 60000);
}
break;
}
if(e.PackageName == BitwardenPackage)
@ -220,9 +225,9 @@ namespace Bit.Android
return cancelNotification;
}
public void CancelNotification(NotificationManager notificationManager)
public void CancelNotification(NotificationManager notificationManager, long limit = 250)
{
if(Java.Lang.JavaSystem.CurrentTimeMillis() - _lastNotificationTime < 250)
if(Java.Lang.JavaSystem.CurrentTimeMillis() - _lastNotificationTime < limit)
{
return;
}