Add missing decreaseIndent.

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

Bug: 79580230
Test: N/A
Change-Id: Ib186a24c64db24c0ecaee4e098cbbf84a60477aa
This commit is contained in:
Kweku Adams
2020-12-14 09:12:28 -08:00
parent f3eda767d7
commit 4c745719fa

View File

@@ -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;
}