use CommonUtil for logging of Autofill service everywhere
This commit is contained in:
@@ -86,7 +86,7 @@ namespace keepass2android.services.AutofillBase
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.Debug(CommonUtil.Tag, "These fields are not meant to be saved by autofill.");
|
CommonUtil.logd("These fields are not meant to be saved by autofill.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ namespace keepass2android.services.AutofillBase
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.Debug(CommonUtil.Tag, "Invalid autofill hint: " + hint);
|
CommonUtil.logd("Invalid autofill hint: " + hint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var finalFilteredHints = new string[i];
|
var finalFilteredHints = new string[i];
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace keepass2android.services.AutofillBase
|
|||||||
Finish();
|
Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
public override void Finish()
|
public override void Finish()
|
||||||
{
|
{
|
||||||
if (ReplyIntent != null)
|
if (ReplyIntent != null)
|
||||||
@@ -71,7 +71,7 @@ namespace keepass2android.services.AutofillBase
|
|||||||
SetResult(Result.Canceled);
|
SetResult(Result.Canceled);
|
||||||
}
|
}
|
||||||
base.Finish();
|
base.Finish();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
void OnFailure()
|
void OnFailure()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace keepass2android.services.AutofillBase
|
|||||||
/// <param name="isManualRequest"></param>
|
/// <param name="isManualRequest"></param>
|
||||||
string Parse(bool forFill, bool isManualRequest)
|
string Parse(bool forFill, bool isManualRequest)
|
||||||
{
|
{
|
||||||
Log.Debug(CommonUtil.Tag, "Parsing structure for " + Structure.ActivityComponent);
|
CommonUtil.logd("Parsing structure for " + Structure.ActivityComponent);
|
||||||
var nodes = Structure.WindowNodeCount;
|
var nodes = Structure.WindowNodeCount;
|
||||||
ClientFormData = new FilledAutofillFieldCollection();
|
ClientFormData = new FilledAutofillFieldCollection();
|
||||||
String webDomain = null;
|
String webDomain = null;
|
||||||
@@ -119,7 +119,7 @@ namespace keepass2android.services.AutofillBase
|
|||||||
if (string.IsNullOrEmpty(webDomain))
|
if (string.IsNullOrEmpty(webDomain))
|
||||||
{
|
{
|
||||||
webDomain = "androidapp://" + packageName;
|
webDomain = "androidapp://" + packageName;
|
||||||
Log.Debug(CommonUtil.Tag, "no web domain. Using package name.");
|
CommonUtil.logd("no web domain. Using package name.");
|
||||||
}
|
}
|
||||||
return webDomain;
|
return webDomain;
|
||||||
}
|
}
|
||||||
@@ -148,7 +148,7 @@ namespace keepass2android.services.AutofillBase
|
|||||||
String webDomain = viewNode.WebDomain;
|
String webDomain = viewNode.WebDomain;
|
||||||
if (webDomain != null)
|
if (webDomain != null)
|
||||||
{
|
{
|
||||||
Log.Debug(CommonUtil.Tag, $"child web domain: {webDomain}");
|
CommonUtil.logd($"child web domain: {webDomain}");
|
||||||
if (!string.IsNullOrEmpty(validWebdomain))
|
if (!string.IsNullOrEmpty(validWebdomain))
|
||||||
{
|
{
|
||||||
if (webDomain == validWebdomain)
|
if (webDomain == validWebdomain)
|
||||||
|
|||||||
Reference in New Issue
Block a user