mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 00:02:58 +03:00
Do some manual GCing
This commit is contained in:
parent
8d5d477b4a
commit
54159c9d05
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,7 @@ namespace Bit.Android
|
||||||
var allEditTexts = GetWindowNodes(root, e, n => EditText(n));
|
var allEditTexts = GetWindowNodes(root, e, n => EditText(n));
|
||||||
var usernameEditText = allEditTexts.TakeWhile(n => !n.Password).LastOrDefault();
|
var usernameEditText = allEditTexts.TakeWhile(n => !n.Password).LastOrDefault();
|
||||||
FillCredentials(usernameEditText, passwordNodes);
|
FillCredentials(usernameEditText, passwordNodes);
|
||||||
|
allEditTexts = null;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -99,6 +100,7 @@ namespace Bit.Android
|
||||||
AutofillActivity.LastCredentials = null;
|
AutofillActivity.LastCredentials = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
passwordNodes = null;
|
||||||
if(cancelNotification)
|
if(cancelNotification)
|
||||||
{
|
{
|
||||||
CancelNotification();
|
CancelNotification();
|
||||||
|
@ -107,6 +109,9 @@ namespace Bit.Android
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
root = null;
|
||||||
|
GC.Collect(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnInterrupt()
|
public override void OnInterrupt()
|
||||||
|
|
Loading…
Reference in a new issue