commit | 4863ac4c4b47af2f05e6faa7d66bb5e838146f35 | [log] [tgz] |
---|---|---|
author | Shane <shanewong@google.com> | Tue Dec 19 16:51:55 2023 +0000 |
committer | Shane <shanewong@google.com> | Tue Dec 19 18:56:51 2023 +0000 |
tree | 821b743c7a220b11d50eefec7c32b7095284c1b4 | |
parent | 779bb8efb555f65582d880486d3c2ecbf8bf9b35 [diff] |
Replace getVisibity and getAlpha function in getSizePercentage 1. Replace the getVisibity and getAlpha functions with the logic directly to avoid NullPointerException. 2. Move the flag to cover the entire getSizePercentage function Bug: 316852908 Test: atest ViewTest & atest ViewRootImplTest Change-Id: I979302ce9830027d8d0e5d9e47820584f9ba1ef8