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

Skip to content
Commit 37e0f7d8 authored by Hai Zhang's avatar Hai Zhang
Browse files

Fix skipping the last address line and avoid appending nulls.

getMaxAddressLineIndex() returns the largest index instead of the
number of lines, so a less-than-or-equal check is the correct
condition here, or we'll lose the last line. Address lines may also be
null, and in case of null having an empty line is still better than
having a line saying "null".

Fixes: 155585322
Test: presubmit
Change-Id: I150db3ced2fbcdf73faf0cc6adf618b13d5acfca
parent ef21ed35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment