Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5a52f90 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Minor logging improvements on Autofill."

parents 87128781 686128ef
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6259,6 +6259,8 @@ public class Activity extends ContextThemeWrapper
        final AutofillManager afm = getAutofillManager();
        if (afm != null) {
            afm.dump(prefix, writer);
        } else {
            writer.print(prefix); writer.println("No AutofillManager");
        }
    }

+7 −1
Original line number Diff line number Diff line
@@ -997,7 +997,12 @@ public final class AutofillManager {
    }

    private AutofillClient getClientLocked() {
        return mContext.getAutofillClient();
        final AutofillClient client = mContext.getAutofillClient();
        if (client == null && sDebug) {
            Log.d(TAG, "No AutofillClient for " + mContext.getPackageName() + " on context "
                    + mContext);
        }
        return client;
    }

    /** @hide */
@@ -1579,6 +1584,7 @@ public final class AutofillManager {
        final String pfx = outerPrefix + "  ";
        pw.print(pfx); pw.print("sessionId: "); pw.println(mSessionId);
        pw.print(pfx); pw.print("state: "); pw.println(getStateAsStringLocked());
        pw.print(pfx); pw.print("context: "); pw.println(mContext);
        pw.print(pfx); pw.print("enabled: "); pw.println(mEnabled);
        pw.print(pfx); pw.print("hasService: "); pw.println(mService != null);
        pw.print(pfx); pw.print("hasCallback: "); pw.println(mCallback != null);