mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-12 01:28:26 +02:00
autofill fixes for password focus
This commit is contained in:
parent
e651a13980
commit
84a6ee8cbf
@ -121,8 +121,13 @@ namespace Bit.Android
|
|||||||
if(uri != _lastNotificationUri)
|
if(uri != _lastNotificationUri)
|
||||||
{
|
{
|
||||||
CancelNotification(notificationManager);
|
CancelNotification(notificationManager);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
else if(uri.StartsWith(App.Constants.AndroidAppProtocol))
|
||||||
|
{
|
||||||
|
CancelNotification(notificationManager, 60000);
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(e.PackageName == BitwardenPackage)
|
if(e.PackageName == BitwardenPackage)
|
||||||
@ -220,9 +225,9 @@ namespace Bit.Android
|
|||||||
return cancelNotification;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user