commit | 525714a88bef5743016431c171cdc61bad45427e | [log] [tgz] |
---|---|---|
author | Mohamed Heikal <mheikal@google.com> | Thu Jul 18 11:14:31 2019 -0400 |
committer | Mohamed Heikal <mheikal@google.com> | Thu Jul 18 15:57:13 2019 +0000 |
tree | 57d04193856d34521b7094ba933e97d3e48b7dde | |
parent | 59dc6124c842503d57d279b1f0139ae1302675f2 [diff] |
Precalculate the required number of characters for path shortening It does not make sense for aapt2 to calculate the optimal number of chars in the shortened path when it only depends on the number of resources rather than anything apk specific. This cl precalculates the number of chars and uses if conditions instead. Test: manual testing + aapt2_tests still passes. Change-Id: If2dc86952a6b6e01ce02dc42754c037d07d57325