Do some manual GCing

This commit is contained in:
Kyle Spearrin 2017-02-18 21:33:06 -05:00
parent 8d5d477b4a
commit 54159c9d05

View file

@ -88,6 +88,7 @@ namespace Bit.Android
var allEditTexts = GetWindowNodes(root, e, n => EditText(n));
var usernameEditText = allEditTexts.TakeWhile(n => !n.Password).LastOrDefault();
FillCredentials(usernameEditText, passwordNodes);
allEditTexts = null;
}
else
{
@ -99,6 +100,7 @@ namespace Bit.Android
AutofillActivity.LastCredentials = null;
}
passwordNodes = null;
if(cancelNotification)
{
CancelNotification();
@ -107,6 +109,9 @@ namespace Bit.Android
default:
break;
}
root = null;
GC.Collect(0);
}
public override void OnInterrupt()