summaryrefslogtreecommitdiff
path: root/tools/aapt2/Debug.cpp
diff options
context:
space:
mode:
author Ryan Mitchell <rtmitchell@google.com> 2021-03-30 12:20:08 -0700
committer Ryan Mitchell <rtmitchell@google.com> 2021-03-30 14:13:07 -0700
commit1499f504e4142879a6153dc90a7d0ecb88319930 (patch)
tree64c215492654082c177299704a36b9a08bec068c /tools/aapt2/Debug.cpp
parentb50914c52441216f27b7a6d789f00be62f7cd5f2 (diff)
Update iterators during aapt2 diff
A recent change broke aapt2 diff. We need to update the iterators when an package, type, or entry is not missing from either APK. Bug: 184066458 Test: `aapt2 diff` with framework before and after staging changes Change-Id: I9138b9bd80aec24488feca6e06be1d7cf5775290
Diffstat (limited to 'tools/aapt2/Debug.cpp')
-rw-r--r--tools/aapt2/Debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/Debug.cpp b/tools/aapt2/Debug.cpp
index 351e4202af65..77c0872037ac 100644
--- a/tools/aapt2/Debug.cpp
+++ b/tools/aapt2/Debug.cpp
@@ -300,6 +300,10 @@ void Debug::PrintTable(const ResourceTable& table, const DebugPrintTableOptions&
break;
}
+ if (entry->visibility.staged_api) {
+ printer->Print(" STAGED");
+ }
+
if (entry->overlayable_item) {
printer->Print(" OVERLAYABLE");
}