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

Commit 22d8445b authored by Haoran Zhang's avatar Haoran Zhang
Browse files

[Assist Structure] Make assist structure dump easier to read

Currently in assist structure dump, the "No Credential Manager Request"
line is missing one indent, making the dumped assist structure a bit
hard to read.

This change reformatted the "No Credential Manager Request" line to be
consistent format with "Autofill info", making reading the dump eaiser.

Before: https://paste.googleplex.com/5976725927755776#l=9
After the chanage: https://paste.googleplex.com/4901063213187072#l=116

Bug: b/331667322
Test: N/A change only in dump msg
Change-Id: Id7f0ef79c7964086d0c4b5b3934e57b865a367c6
parent 8eae782a
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -2655,13 +2655,12 @@ public class AssistStructure implements Parcelable {
            );
        }
        GetCredentialRequest getCredentialRequest = node.getPendingCredentialRequest();
        if (getCredentialRequest == null) {
            Log.i(TAG, prefix + " No Credential Manager Request");
        } else {
            Log.i(TAG, prefix + "  GetCredentialRequest: no. of options= "
                    + getCredentialRequest.getCredentialOptions().size()
        Log.i(TAG, prefix + "  Credential Manager info:"
                + " hasCredentialManagerRequest=" + (getCredentialRequest != null)
                + (getCredentialRequest != null
                        ? ", sizeOfOptions=" + getCredentialRequest.getCredentialOptions().size()
                        : "")
        );
        }

        final int NCHILDREN = node.getChildCount();
        if (NCHILDREN > 0) {