OSDN Git Service

Ignore null value in Account settings summary.
authorDoris Ling <dling@google.com>
Thu, 15 Feb 2018 01:50:25 +0000 (17:50 -0800)
committerDoris Ling <dling@google.com>
Thu, 15 Feb 2018 18:47:29 +0000 (10:47 -0800)
commitfc4d46495d7b8d42a330a1284f162910bb682239
tree4b5afd820c1ded0d4a98c5c825b34b659ac0c9aa
parentcfffedbf43d1491236980b8557504bce72e23a1d
Ignore null value in Account settings summary.

If an account type has no valid label, null is returned. Check the value
to make sure that it is a valid label before adding it to the summary.

Change-Id: I0cf3ef9a976e1a7fe16720da237f416c674791fc
Fixes: 73375480
Test: make RunSettingsRoboTests
src/com/android/settings/accounts/AccountDashboardFragment.java
tests/robotests/src/com/android/settings/accounts/AccountDashboardFragmentTest.java