| commit | fc31ea6d85223556e8511c04385c1789a209bf40 | [log] [tgz] |
|---|---|---|
| author | Riddle Hsu <riddlehsu@google.com> | Thu Aug 01 15:41:37 2024 +0800 |
| committer | Riddle Hsu <riddlehsu@google.com> | Thu Aug 01 15:43:32 2024 +0800 |
| tree | 5a7ad56aef85fc6d010708ff60b1243804d7ea84 | |
| parent | bd5e0d9105f2995b7809dc2f3838885b2d1a5ee3 [diff] |
Fix command format of wm density
The getNextOption consumes an argument, which causes the format
becomes "wm density -d -d 2".
So change to not read the next argument too early. It only need
to get if a "-d" option is found.
Bug: 186124236
Flag: EXEMPT bugfix
Test: Create a virtual display.
adb shell wm density -d 2
It should output the density of the display
Change-Id: I41f7c4301693e189d2f819643dc9bea2e7d15439