Merge "Fix NPE" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0abe80aa7b
@@ -110,7 +110,7 @@ public class HybridNotificationView extends AlphaOptimizedLinearLayout
|
||||
|
||||
public void bind(@Nullable CharSequence title, @Nullable CharSequence text,
|
||||
@Nullable View contentView) {
|
||||
mTitleView.setText(title.toString());
|
||||
mTitleView.setText(title != null ? title.toString() : title);
|
||||
mTitleView.setVisibility(TextUtils.isEmpty(title) ? GONE : VISIBLE);
|
||||
if (TextUtils.isEmpty(text)) {
|
||||
mTextView.setVisibility(GONE);
|
||||
|
||||
Reference in New Issue
Block a user