Add dump log for BatteryTip.
Since BatteryTipLoader will dump all BatteryTips, so we only need to add toString() for it. Bug: 74246970 Test: RunSettingsRoboTests Change-Id: I0a89c4ac06d107274d47f8b4b66867373c062c1b
This commit is contained in:
@@ -97,6 +97,19 @@ public class RestrictAppTip extends BatteryTip {
|
||||
return mRestrictAppList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder stringBuilder = new StringBuilder(super.toString());
|
||||
stringBuilder.append(" {");
|
||||
for (int i = 0, size = mRestrictAppList.size(); i < size; i++) {
|
||||
final AppInfo appInfo = mRestrictAppList.get(i);
|
||||
stringBuilder.append(" " + appInfo.toString() + " ");
|
||||
}
|
||||
stringBuilder.append('}');
|
||||
|
||||
return stringBuilder.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
super.writeToParcel(dest, flags);
|
||||
|
Reference in New Issue
Block a user