OSDN Git Service

Hide unused fields
authorTom Taylor <tomtaylor@google.com>
Wed, 6 Jan 2010 00:25:53 +0000 (16:25 -0800)
committerTom Taylor <tomtaylor@google.com>
Wed, 6 Jan 2010 00:25:53 +0000 (16:25 -0800)
commitac65121351f88a890d73a9911f705b7f8f663cd8
tree81e8c0cc0a5c00b87f27846928b2c37b216641a7
parent08fa1428eed52083789dc3b366aea4873199bd37
Hide unused fields

When ContactHeaderWidget.bindFromPhoneNumber is called with a number
that's not in contacts, onQueryComplete takes a path that doesn't hide
fields that don't apply to the current phone number. As a result, the
user sees the new number, but old data from the previous display (such
as the facebook status). With this change, those fields are hidden.
Fixes bug 2336977.

Change-Id: Ib6253c18dc58c3d28b463c87d5d195a84d613600
core/java/com/android/internal/widget/ContactHeaderWidget.java