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

Commit 010291d6 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix IndexOutOfRange in dumpsys content.

The table has 13 columns but the declaration was only 12.

Bug: 62388237
Test: manual test with "dumpsys content"
Change-Id: I8cbc57dde6ff2dbadb64f4d6061298f73fa73119
parent 373ab721
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1858,7 +1858,7 @@ public class SyncManager {
                    account.account.name, account.userId, account.account.type);

            pw.println("=======================================================================");
            final PrintTable table = new PrintTable(12);
            final PrintTable table = new PrintTable(13);
            table.set(0, 0,
                    "Authority", // 0
                    "Syncable",  // 1
@@ -1871,7 +1871,8 @@ public class SyncManager {
                    "User",      // 8
                    "Tot",       // 9
                    "Time",      // 10
                    "Last Sync" // 11
                    "Last Sync", // 11
                    "Etc"        // 12
            );

            final List<RegisteredServicesCache.ServiceInfo<SyncAdapterType>> sorted =
@@ -1921,6 +1922,7 @@ public class SyncManager {
                    }
                }

                row1 = row;
                if (status.lastSuccessTime != 0) {
                    table.set(row1++, 11, SyncStorageEngine.SOURCES[status.lastSuccessSource]
                            + " " + "SUCCESS");