Handle prefix when dumping ApplicationInfo#crossProfile

This is a follow up CL to a CL [1] that added one more state dump from
ApplicationInfo but forgot to take care of prefix handling.

 [1]: I11b5d9919e4463cdaf89826360bc12ae68dbd0af
      f9b99f5fa1

Bug: 142538125
Bug: 142537267
Test: Ran the following command to see "crossProfile"
      is aligned with other outputs from ApplicationInfo.
         adb shell dumpsys input_method
Change-Id: I629d4653b0d9109615feb02718d1228cf4f850d7
This commit is contained in:
Yohei Yukawa
2020-02-11 15:40:25 -08:00
parent 7cd9daebb1
commit 5af3f917a7

View File

@@ -1389,7 +1389,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
pw.println(prefix + "fullBackupContent="
+ (fullBackupContent < 0 ? "false" : "true"));
}
pw.println("crossProfile=" + (crossProfile ? "true" : "false"));
pw.println(prefix + "crossProfile=" + (crossProfile ? "true" : "false"));
if (networkSecurityConfigRes != 0) {
pw.println(prefix + "networkSecurityConfigRes=0x"
+ Integer.toHexString(networkSecurityConfigRes));