Commit 99733634 authored by Tina Wang's avatar Tina Wang Committed by Commit Bot

[ProfileCard] Fix layout error

After inherit from TextBubble, the ProfileCardView is no longer a view, so it can't be the label of the layout file.

Change-Id: I79f0785eac13b33c3ab572d8cac0e78b2a26e6ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2092216Reviewed-by: default avatarsebsg <sebsg@chromium.org>
Commit-Queue: Tina Wang <tinazwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747949}
parent c9035590
......@@ -3,7 +3,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<org.chromium.chrome.browser.profile_card.ProfileCardView
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/profile_card"
android:layout_width="match_parent"
......@@ -36,4 +36,4 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
layout="@layout/content_preview_posts_container" />
</org.chromium.chrome.browser.profile_card.ProfileCardView>
</LinearLayout>
......@@ -58,7 +58,7 @@ public class ProfileCardView extends TextBubble {
}
void setAvatarBitmap(Bitmap avatarBitmap) {
mAvatarView.setImageBitmap(avatarBitmap);
if (avatarBitmap != null) mAvatarView.setImageBitmap(avatarBitmap);
}
void setTitle(String title) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment