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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user