Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42fe2b2a authored by Donald Chai's avatar Donald Chai
Browse files

[aapt2] Close empty lists in "dump resources".

Bug: 129134933
Test: manual (b/129134933#comment4) since there's no Debug_test.cpp
Change-Id: Ib31481457089eade6f1d380cff4eeba0ff0c499d
parent 08e8b156
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -170,7 +170,6 @@ class ValueBodyPrinter : public ConstValueVisitor {
  void Visit(const Array* array) override {
    const size_t count = array->elements.size();
    printer_->Print("[");
    if (count > 0) {
    for (size_t i = 0u; i < count; i++) {
      if (i != 0u && i % 4u == 0u) {
        printer_->Println();
@@ -183,7 +182,6 @@ class ValueBodyPrinter : public ConstValueVisitor {
    }
    printer_->Println("]");
  }
  }

  void Visit(const Plural* plural) override {
    constexpr std::array<const char*, Plural::Count> kPluralNames = {