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

Commit 4c745719 authored by Kweku Adams's avatar Kweku Adams
Browse files

Add missing decreaseIndent.

Also dump N/A if the file map is empty.

Bug: 79580230
Test: N/A
Change-Id: Ib186a24c64db24c0ecaee4e098cbbf84a60477aa
parent f3eda767
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1138,6 +1138,7 @@ public class BatterySaverPolicy extends ContentObserver implements
                    ipw.println(mLastDeviceConfigProperties.getString(key, null));
                }
            }
            ipw.decreaseIndent();

            ipw.println("mAccessibilityEnabled=" + mAccessibilityEnabled.get());
            ipw.println("mAutomotiveProjectionActive=" + mAutomotiveProjectionActive.get());
@@ -1191,7 +1192,7 @@ public class BatterySaverPolicy extends ContentObserver implements
    }

    private void dumpMap(PrintWriter pw, ArrayMap<String, String> map) {
        if (map == null) {
        if (map == null || map.size() == 0) {
            pw.println("N/A");
            return;
        }