Minor improvements on autofill javadocs and logging.
Test: m update-api
Bug: 69456547
Change-Id: I2cab6d7d6ecbe7c1842a5be37af923dd20355b73
diff --git a/core/java/android/view/autofill/AutofillManager.java b/core/java/android/view/autofill/AutofillManager.java
index 9241ec0..547e0db 100644
--- a/core/java/android/view/autofill/AutofillManager.java
+++ b/core/java/android/view/autofill/AutofillManager.java
@@ -908,6 +908,7 @@
}
synchronized (mLock) {
if (mSaveOnFinish) {
+ if (sDebug) Log.d(TAG, "Committing session on finish() as requested by service");
commitLocked();
} else {
if (sDebug) Log.d(TAG, "Cancelling session on finish() as requested by service");
@@ -955,6 +956,7 @@
* methods such as {@link android.app.Activity#finish()}.
*/
public void cancel() {
+ if (sVerbose) Log.v(TAG, "cancel() called by app");
if (!hasAutofillFeature()) {
return;
}