Don't crash when a user taps on a fast track trigger that isn't hooked up to a contact.

This commit is contained in:
Jeff Hamilton
2009-09-02 13:39:16 -05:00
parent 66c70e13d9
commit b623a7c953

View File

@@ -425,6 +425,11 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList
}
public void onClick(View view) {
// Make sure there is a contact
if (mContactUri == null) {
return;
}
switch (view.getId()) {
case R.id.star: {
// Toggle "starred" state